function disabledButton() {
$("input[@type='submit']").each(function () {
$(this).bind("click", function () {
$(this).attr("disabled", true);
$(this).parents().filter("form").trigger("submit");
});
});
}
var initFun = window.onload;
if (initFun == null) {
window.onload = disabledButton;
} else {
window.onload = function () {
initFun();
disabledButton();
};
}
生成js文件,页面加载就可以了.用submit 按钮生效