//js中的陣列可以用鍵值對的陣列方式存在
var arr = new Array();
arr["A"] = "boss"; document.write(arr[m] " ");
} person ["age"] = "18";
person["salary"] = "1888.9";
for (var p in person) {
document.write(person[p] "
");
}
//測試使用有age特性呢?
if (typeof person["age"] == "undefined") {