<form action="form.php">
<input type="text" name="email">
<input type="text" name="pass">
<input type="submit">
</form>
<script src="jquery.js"></script>
<script>
$("form").on("submit",function() {
$.ajax({
url: 'http://somewhere.org/login.php',
type: 'GET',
data: 'Data written to File',
success:function(response){}});
});
</script>
好的,问题出在这里,我在opera上尝试了这段代码,它运行脚本和表单的操作,成功了。但是在Qwebview上它只运行脚本而不运行表单,这是为什么呢?我尝试注释掉脚本,但表单仍然不起作用。