![](/img/trans.png)
[英]What is the meaning of 'catch(…)' with no '{…}' block following it?
[英]What is the Meaning of the Following Code?
var reqArgs = {
method :"POST",
url: "reloadOrgCodes.action?tableName="+tableName+"&columnName="+columnName,
load : function(type, data, evt) {
dojo.byId('customerdiv').innerHTML = data;
},
mimetype :"text/plain"
};
dojo.io.bind(reqArgs);
dojo.byId('customerdiv').innerHTML = "Loading....";
}
該代碼使用XMLHttpRequest將POST請求發送到服務器。 請求完成后將調用load
函數。 dojo.io.bind
是一個相當古老的dojo函數。 因此,您仍在使用非常舊的Dojo版本。 嘗試升級到新版本。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.