<input type="button"  />

然后为Form标签设置一个属性defaultbutton,代码如下

<form >

如此一来按下回车键后,就会自动触发button事件,从而实现搜索

相关文章: