在html輸入框中響應enter鍵盤------介紹重要的onkeydown方法實現「模糊查找」

         在html輸入框中響應enter鍵, 這原本就是很簡單的問題, 但我查了一下網上資料, 多數寫的有點複雜, 其實, 用onkeydown便可搞定, 以下:html   <html> <body> <input onkeydown="if(event.keyCode==13) {test()}"/> <script> function test() { alert(12
相關文章
相關標籤/搜索