我在 IE10 上测试了我的网站。查看源代码 IE 10 不包含某些 ScriptResource.axd 文件。但我复制网站网址并粘贴 chrome 工作正常。
此代码不包括 IE10。(右键单击 -> 查看源代码)
var theForm = document.forms['form1'];
if (!theForm) {
theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}