bind 的实现

2019-05-04  本文已影响0人  Amy_yqh
 Function.prototype._bind=function(target){
        return ()=>{
            this.call(target)
        }
    }

    function fn(){
        console.log(this)
    }
上一篇 下一篇

猜你喜欢

热点阅读