摘要: 普通函数this: this总是代表它的直接调用者。 在默认情况下,没找到直接调用者,this指的是window。 在严格模式下,没有直接调用者的函数中的this是undefined。 使用call,apply,bind绑定,this指的是绑定的对象。 箭头函数this: 在使用=>定义函数的时候, 阅读全文
posted @ 2021-07-01 16:50 Fairy-Tail 阅读(47) 评论(0) 推荐(0) 编辑