js for跟for in的一些区别2020-07-13afengge阅读(427)赞(1)js中,如果设置的一个新数组,里面有empty item的值(没有默认值),直接用for in,会把有值的打印出来 let arr = new Array();arr[0] = 1...