移動端 input 彈出鍵盤 與 獲取點擊肯定搜索觸發的事件

首先說說如何在用戶點擊 input 時彈出帶有搜索按鈕的鍵盤,其實很簡單,加上 type="search" 便可。html <input id="keyword" placeholder="輸入關鍵字搜索" type="search" /> 獲取搜索按鈕的點擊事件呢,代碼以下:web $("#keyword").on('keypress',function(e) {
相關文章
相關標籤/搜索