1. 将type="text" 改为type="search"
2. IOS需要给input外面加form,比如
<form action="javascript:return true;">
<div class='search-block'>
<div class='search-inner'>
<input type="search" id="searchText" placeholder="标题、内容或附件名称" />
<span class='search-icon' οnclick="search()"></span>
</div>
</div>
</form>
3. 给input绑定回车事件,如
$("#searchText").on('keypress',function(e) {
var keycode = e.keyCode;
if(keycode=='13') {
e.preventDefault();
//隐藏键盘
$(this).blur();
//请求搜索接口search(); //重新搜索,重置列表数据
}
});