js简单禁止form表单提交的方法

test 填写表单ID

document.getElementById("test").focus; 
return false;//false:阻止提交表单
 

猜你喜欢

转载自blog.csdn.net/c1824338832/article/details/86505974
今日推荐