最直接的区别就是:for in遍历的是数组的索引(即键名),而for of遍历的是数组元素值。Array.prototype.method=function(){}var myArray=[1,2,4] ...
確定! 回上一頁