js中的Array数组清空

var data = new Array();//数组
data.length = 0;//数组的长度等于0,数组的项就会被清空

posted @ 2018-12-20 10:42  酒乐  阅读(2823)  评论(0编辑  收藏  举报