摘要: var obj = { id: "awesome", cool: function coolFn() { console.log(this.id); } }; var id = "not awesome" obj.cool(); // 酷 this指向obj setTimeout(obj.cool, 阅读全文
posted @ 2021-04-13 14:27 faint33 阅读(35) 评论(0) 推荐(0)