js 为什么会自动将key为数字字符串数组排序

2025-05-21 10:58:54
推荐回答(1个)
回答1:

for(varxinb){if(!b.hasOwnProperty(x)){continue;}//do}对于数组可以用ES5的forEach()函数来迭代