原型链上的call方法集合

1. Object.prototype.toString.call(value) //  返回数据的类型

  //  "[object Object]" 等

2. Array.prototype.slice.call(value)   //  将类数组,转为真正的数组

  例如: Array.prototype.slice.call({ 0: 'a', 1: 'b', length: 2 }
             --> [a, b]
      Array.prototype.slice.call(document.querySelectorAll("div"));  
             // document.querySelectorAll("div") instanceof Array-->false
     Array.prototype.slice.call(arguments);

转载于:https://www.cnblogs.com/lyraLee/p/10477445.html