摘要: JS for-in和for-of的区别 JS for-in和for-of的区别 for-in let arr = [1, 2, 3, 4, 5]; Array.prototype.id = 123; arr.name = 'zk'; for(let index in arr) { console.log(arr[index]); // o 阅读全文
posted @ 2022-08-11 10:15 zakun 阅读(80) 评论(0) 推荐(0) 编辑
返回顶部