11 2020 档案

this指向
摘要:const obj={ a:10, c:this.a, getA:function(){ return this.a } } console.log(obj.c); //undefined(this指向window) console.log(obj.getA()); //10(this指向obj) 阅读全文

posted @ 2020-11-12 13:44 sss大辉 阅读(100) 评论(0) 推荐(0) 编辑

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

导航

统计

点击右上角即可分享
微信分享提示