for in,Object.keys()与for of的用法与区别 Array.prototype.sayLength=function(){ console.log(this.length); } let arr = [‘a’,’ … 继续阅读 for in,Object.keys()与for of的用法与区别