call,apply,prototype,__proto__

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__)