在IOS中,将Input 的type设置为search 后键盘回车键上的文字是换行,需求是回车键文字是”搜索“。 解决办法: 给input外套一个form,而且加个空的”action“.html
<form action=""> <input type="search"/> </form>