H5 input search 提交事件

欲實現一個文字搜索的功能,要求輸入時,鍵盤迴車按鈕提示顯示爲「搜索」。效果以下: html 開始~html5 input type=text並不能達到這種效果,google了一下,html5 增長的type=search能夠作到(但須要input type=search外面包上一層帶action屬性的form)。ios <div class="search-input-wrap clearfix"
相關文章
相關標籤/搜索