摘要:
//javascript中没有多维数组的概念var aa = new Array();aa[0] = 1;aa["tt"] = [0,1];//javascript在用负数,浮点数,(或布尔型,对象,其他值时),javascript会将它转换为一个字符串,用生成的字符串作为对象的属性名字,而不是定义了一个新的数组元素aa["bb"] = [2,3];//遍历数组中的所有属性,不仅仅遍历数组元素for(var i in aa){document.write(aa[i]);}document.write(aa.length);document.write(a 阅读全文
posted @ 2011-06-30 11:16
Mygirl
阅读(1726)
评论(0)
推荐(0)

浙公网安备 33010602011771号