var myarr1= ["我","爱","你"]; document.write(myarr1.slice(1,3));
var myarr1= ["我","爱","你"];
document.write(myarr1.slice(1,3));
end:该参数是数组片段结束处的数组下标。这里“你”的数组下标不应该是2么,为什么把3改成2,“你”就显示不出来呢?
var myarr1= ["我","爱","你"];
document.write(myarr1.slice(1,3));
end:该参数是数组片段结束处的数组下标。这里“你”的数组下标不应该是2么,为什么把3改成2,“你”就显示不出来呢?
2016-12-15
举报