JavaScript中清空数组的方法总结 方式1,splice var ary = [1,2,3,4]; ary splice(0,ary length); console log(ary); 输出 [],空数组 JavaScript 2022-04-11 68 点赞 1 评论 103 浏览