最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
jQuery实现给input绑定回车事件的方法
时间:2022-06-25 17:16:34 编辑:袖梨 来源:一聚教程网
| 代码如下 | 复制代码 |
$(function(){ $('#dataInput').bind('keypress',function(event){ if(event.keyCode =="13") { alert('你输入的内容为:'+ $('#dataInput').val()); } });//方法二如下 $(document).keydown(function(e) { if(e.keyCode == 13) { //dologin(); } }); }); | |
相关文章
- pishi-normalno:AI Agent 工具实践指南 10-03
- contract-review:实践指南 10-03
- smart-annotator:AI Agent 工具实践指南 10-03
- atlas:AI Agent 工具实践指南 10-03
- pi-kit:实践指南 10-03
- chrona:实践指南 10-03