摘要: 1、对象内函数的this指向对象 let obj = { name: 'obj', f: function () { return this } } console.log(obj.f()) 2、全局函数指向window let f = function () { return this } con 阅读全文
posted @ 2021-10-26 17:55 陈大雷Q 阅读(28) 评论(0) 推荐(0)