摘要:
点击按钮,触发表单提交:document.getElementById("subBtn").onclick=function(){ document.getElementById("form").submit(); }会报错(chrome下):UncaughtTypeError:Property'submit'ofobject#isnotafunction原因是name="submit"这句,换成别的name=sb1,sb2,sb2。。。另外,经测,将id="submit",也会这样同理,用于res 阅读全文