2023年8月7日

摘要: 对象的方法简写,可以省略function: let obj ={ userName:'鸣人', age:10, getUserName(){ return this.userName; }, getAge:function(){ return this.age; } } console.log(ob 阅读全文
posted @ 2023-08-07 15:34 荆棘人 阅读(5) 评论(0) 推荐(0) 编辑

导航