var a=["one","two","three","four","five"];
var b=a.slice(1,3);
console.log(b);//截取数组中的某项,用slice
截取数组中的某项
最新推荐文章于 2023-03-27 14:33:45 发布
var a=["one","two","three","four","five"];
var b=a.slice(1,3);
console.log(b);//截取数组中的某项,用slice