js中数组删除 splice和delete的区别,以及delete的使用

var test=[]; test[1]={name:'1',age:1}; test[2]={name:'2',age:2}; test[4]={name:'3',age:3};html console.log(test)数组     长度为5的关联数组,如今开始删除。post 1.splice方法ui test.splice(2,1); console.log(test)// 打印结果以下th
相关文章
相关标签/搜索