演示:http://www.huiyi8.com/jiaoben/
包含了javascript特效
1、var beatles = Array(); // 可以指定数组大小如 var beatles = Array(5);
beatles[0] = "Mike";
2、var beatles = Array("Mike", "John");
3、var beatles = ["Mike", "John"];
4、混合数组:
var beatles = Array("Mike", 1980, flase);
5、关联数组:
var lennon = Array();
lennon["name"] = "Mike";
lennon["year"] = 1980;
lennon["living"] = false;
另外数组中可以嵌套数组。比如:
var team = Array();
var person = Array("jxqlovejava", false);
team[0] = person;
时间: 2024-12-14 07:10:32