我有读取功能,我想确保参数的值存在,如果没有取消读取事件。如何从 Read 中取消 ajax 调用?
read: {
url: function (e) {
try {
//var OrgHeadQrtrID_PK = 0;
if (e.orgHeadQuarterIdPK == null)
**--not sure how to cancel this read**
return baseURL + "/GetOrgs";
} catch (e) {
console.error("Error occured in the read method of module " + moduleName);
console.trace();
}
}, // "/PutOrgSchool",