Jsref class static:修订历史

本页内容
上一节: Jsref_class_extends 下一节: Jsref_class_super

差异选择:选中要对比的版本的单选按钮,按Enter键或下方的按钮。
说明:(当前)=与最后版本之间的差异,(之前)=与上一版本之间的差异,=小编辑。

    2022年8月19日 (星期五)

    • 当前之前 11:182022年8月19日 (五) 11:18Neo 讨论 贡献 2,201字节 +2,201 创建页面,内容为“{{DISPLAYTITLE:static}}3 = JavaScript 类(class) static 关键字 = JavaScript 类(class) 以下实例创建的类 "xiaoBai",并创建静态方法 hello() : <sample title="" desc="" lang="html" hererun="1"> class xiaoBai { constructor(name) { this.name = name; } static hello() { return "Hello!!"; } } let noob = new xiaoBai("小白教程"); // 可以在类中调用 'hello()' 方法 d…”
上一节: Jsref_class_extends 下一节: Jsref_class_super