摘要:
原生JS(es5)中的静态方法 //原生JS中的静态方法 function Person(name, age) { this.name = name; this.age = age; this.run = function () { console.log(`${this.name} is ${th 阅读全文
posted @ 2022-01-30 13:33
weakup
阅读(47)
评论(0)
推荐(0)
摘要:
class User{ // 属性 sitr='hdsj'; constructor(name){ this.name=name; } getName(){ return this.name; } changeSite(value){ this.site=value; } show(){ retur 阅读全文
posted @ 2022-01-30 11:27
weakup
阅读(82)
评论(0)
推荐(0)
浙公网安备 33010602011771号