var net = new Object(); // 定義一個全局變量net// 編寫構造函數net.AjaxRequest = function(url, onload, onerror, method,