ASP.NET 的服务器控件回发是使用这一段JS代码:
复制代码 代码如下:
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();
}
}
复制代码 代码如下:
if (<span>!theForm.onsubmit || (theForm.onsubmit() != false</span>)) {
...
}
复制代码 代码如下:
$("form:first")<span>.get(0)</span>.onsubmit = function () {
...
};
新闻热点
疑难解答
图片精选