<div class="codetitle"> <span><a style="CURSOR: pointer" data="27499" class="copybut" id="copybut27499" onclick="doCopy('code27499')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code27499"> <br>var array = new Array(["no1","no2"]); <br>array["po"] = "props1"; <br>alert(array[0][0]); <br>alert(array.length); //2 <br>//对于数组来说,array[0]同array["0"]效果是一样的(?不确定,测试时如此) <br>alert(array[0] + "_" + array["1"] + "_" + array.po);// <br> </div>