摘要: js对象的方法 答:1 Object.keys() 2 Object.values() 3 Object.hasOwnProperty() 4 Object.assign(target, ...sources) 5.Object.is() 判断俩个值是否相等 6 Object.create(prot 阅读全文
posted @ 2022-06-07 21:45 小白张先生 阅读(52) 评论(0) 推荐(0)
摘要: this指向 以及 call bind apply 答: 1.普通函数, this指向window 2.定时器, this指向window 3构造函数, this指向实例化的对象 4.对象方法的调用: this指向该方法所属的对象 5.事件绑定的方法: this指向事件源 ** 改变this指向的方 阅读全文
posted @ 2022-06-07 21:24 小白张先生 阅读(27) 评论(0) 推荐(0)