Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 在文本框(jquery/cordova)上按下Go按钮时发生页面重定向_Javascript_Jquery_Cordova_Jquery Mobile - Fatal编程技术网

Javascript 在文本框(jquery/cordova)上按下Go按钮时发生页面重定向

Javascript 在文本框(jquery/cordova)上按下Go按钮时发生页面重定向,javascript,jquery,cordova,jquery-mobile,Javascript,Jquery,Cordova,Jquery Mobile,我正在开发cordova应用程序,并将jquery mobile与cordova一起使用 我以以下方式在html页面中创建了一个文本字段: <input type="email" id="email_id" name="email_id" maxlength="80" placeholder="email@doamin.com" style="height: 50px;" /> <form onsubmit='return false;'></form>

我正在开发cordova应用程序,并将jquery mobile与cordova一起使用

我以以下方式在html页面中创建了一个文本字段:

<input type="email" id="email_id" name="email_id" maxlength="80" placeholder="email@doamin.com" style="height: 50px;" />
<form onsubmit='return false;'></form>
4:Object
是重定向后创建的对象,与其他对象不同,例如标题被修改,转换样式从
none
更改为
fade


任何人都可以告诉我为什么会发生这种情况,以及如何解决它。

听起来好像go按钮正在执行提交操作。当这个人点击go时,你预计会发生什么


您可以通过调试代码来跟踪发生的情况吗?

听起来go按钮正在执行提交操作。当这个人点击go时,你预计会发生什么


你能通过调试代码来跟踪发生了什么吗?

通过添加onsubmit='return false;'修复了这个问题以以下方式添加到表单标记:

<input type="email" id="email_id" name="email_id" maxlength="80" placeholder="email@doamin.com" style="height: 50px;" />
<form onsubmit='return false;'></form>

通过添加onsubmit='return false;'以以下方式添加到表单标记:

<input type="email" id="email_id" name="email_id" maxlength="80" placeholder="email@doamin.com" style="height: 50px;" />
<form onsubmit='return false;'></form>


我希望单击“转到”按钮时不会发生任何事情(或者至少不应该发生页面重定向)。我希望单击“转到”按钮时不会发生任何事情(或者至少不应该发生页面重定向)。