清空javascript数组数据

  
var arrayObj = new Array();

arrayObj.splice(0, arrayObj.length);//清空数组数据
原文地址:https://www.cnblogs.com/david1989/p/3842124.html