美文网首页
call,apply,prototype,__proto__

call,apply,prototype,__proto__

作者: butterflyq | 来源:发表于2017-06-15 21:18 被阅读0次
prototype 与 proto 的联系与区别

原文链接:https://github.com/huangtengfei/blog/issues/11

call,apply
    Array.prototype.map.call('string',function(value){console.log(value)})
    //s t r i n g
    Array.prototype.map.apply('string',[function(value){console.log(value)}])
    //s t r i n g

http://web.jobbole.com/83642/

相关文章

网友评论

      本文标题:call,apply,prototype,__proto__

      本文链接:https://www.haomeiwen.com/subject/ndbuqxtx.html