日期:2014-05-16 浏览次数:20653 次
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(); }; }