https://blog.csdn.net/trustyourself1/article/details/80319087
function onEdit() {
document.getElementById("pager").style.display = "none";
if (formInstance.func("Validate", "") == 1) {
var filePath = formInstance.func("GetFilename", "Path\r\n0");
var fileType = filePath.substring(filePath.lastIndexOf('.') + 1);
var type = formInstance.func("GetValue", "Type");
if (VerificationFile(fileType, type)) {
alert(fileType);
alert(type);
$.get("/Others/UpdateMoreCustomer/GetFileName",{"name":new Date().getTime()}, function (name) {
name = name + "." + fileType;
fileName = name;
formInstance.func("httpPost", "Path\r\n url=/Others/UpdateMoreCustomer/Upload?type=" + type + "&name=" + name + ";isEcho=false;index=0");
name = "";
type = "";
});
}
}
}
ie下:
$.get() 方法在url地址固定时,会缓存返回结果。导致每一次请求的都是同一个文件,除非清除缓存