摘要:
var obj={a:1}; var foo={ getA:function(item1,item2){ return this.a+item1+item2 } } // apply绑定参数为数组,一一对应函数的所需参数 console.log(foo.getA.apply(obj,[2,3])) 阅读全文
posted @ 2020-11-03 17:16
雨中愚
阅读(162)
评论(0)
推荐(0)
摘要:
直接说解决方案 // 弹框打开时 fixedBody = () => { const scrollTop = document.body.scrollTop || document.documentElement.scrollTop; document.body.style.setProperty( 阅读全文
posted @ 2020-11-03 16:47
雨中愚
阅读(157)
评论(0)
推荐(0)

浙公网安备 33010602011771号