JS常见函数用法

100 阅读1分钟
//字符串转成json格式
JSON.parse(res.data);
//追加值到数组的末尾
 arr.push(data.url)
//从哪个下标开始,删除几个
 arr.splice(1, 1);