组数长指定长度后,不是可以将元素储存在规定长度外吗,为和显示的是undefined
<script type="text/JavaScript">
var myarr=new Array(2);
myarr=["ss","ss","sss"];
document.write("数组的第一个值:"+myarr[3]);
</script>
<script type="text/JavaScript">
var myarr=new Array(2);
myarr=["ss","ss","sss"];
document.write("数组的第一个值:"+myarr[3]);
</script>
2018-02-17
举报