if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.open("GET","json/personnel.json",true);
//########################################
// 非同步程式部分
xmlhttp.onreadystatechange = function(){
if(xmlhttp.readyState == 4 && xmlhttp.status == 200)
//將伺服器server傳來的字串xmlhttp.responseText,轉成json物件陣列
var jsonObj = JSON.parse(xmlhttp.responseText);
}//end of xmlhttp.onreadystatechange
xmlhttp.send(null);
//########################################