如果form表单中只有一个<input type="text"/>当按回车键后表单会提交。解决的方法是在加一个隐藏的<input type="text" name ="hah" style="display: none;"/>