1. 首页
  2. 移动开发
  3. QT
  4. jQuery监控文本框事件并作相应处理的方法

jQuery监控文本框事件并作相应处理的方法

上传者: 2020-12-13 02:48:49上传 PDF文件 21.46KB 热度 12次
本文实例讲述了jQuery监控文本框事件并作相应处理的方法。分享给大家供大家参考。具体如下: //事情委托 $(document) .on('input propertychange', '#query', function(){ var input = $(this).val(); show(input); }); var show = function(txt){ var info = '监听:' + txt + '' + '相关搜索:' + showTags(txt); $('.info').html(info
下载地址
用户评论