方法一:
// 用Array 定义数组 myhash = new Array();或者myhash=[]myhash[”key1″] = “val1″;myhash[”key2″] = “val2″;
方法二:
以对象的格式显示定义
var myArray = {"a" : "Athens", "b" : "Belgrade", "c" : "Cairo" };