摘要: 1、修改this指向:封装函数 f,使 f 的 this 指向指定的对象 //解法1:apply function bindThis(f, oTarget) { return function(){ return f.apply(oTarget,arguments); } } //解法2:bind 阅读全文
posted @ 2021-04-07 10:52 ৢ清欢ꦿ✿ 阅读(345) 评论(0) 推荐(3) 编辑