使用如下代码是不好的:
var a = [1,2,3,4]; a.length = 2; // 3 and 4 are removed
它有不错的浏览器支持吗?删除的值是否正确收集垃圾?
javascript
javascript ×1