摘要: 1、用 array.length 也可以移除数组后面的项: var colors = ['red', 'blue', 'green']; colors.length = 2; console.log(colors[2]); //undefined 2、如果将其length属性设置大于数组项数的值,则 阅读全文
posted @ 2017-03-16 11:33 lmy_moonsky 阅读(172) 评论(0) 推荐(0) 编辑