我真机测试,在reg.html中提交表单,代码是这样的:
然后我在该页面的chkForm2中用html+的函数提交表单,然而控制台却爆出这样的错误是在让人费解
event.returnValue is deprecated. Please use the standard event.preventDefault() instead.
Uncaught ReferenceError: chkForm2 is not defined at login.html:1
chkForm2这个函数明明写在reg.html怎么说不在login.html中呢?
然后我在login.html中提交表单,代码是
程序报错: Uncaught ReferenceError: chkForm is not defined at index.html:1,错误又到index.html中了
补充一下,我页面是用jquerymobile做的,在网页上测试没有问题,页面跳转顺序为index.html-login.html-reg.html.
为了方便各位大神指导,我把代码传上来吧。