js前端防止默认表单提交

代码如下:

document.forms[0].onsubmit=function(){return false;};

posted @ 2013-11-18 16:35  编程小帆  阅读(243)  评论(0)    收藏  举报