耀辉
耀辉
  • 发布:2015-01-05 15:33
  • 更新:2015-01-05 15:33
  • 阅读:3791

怎么解决input输入汉字时点击汉字执行某事件

分类:HBuilder

var bind_name = "input";//定义所要绑定的事件名称
if (navigator.userAgent.indexOf("MSIE") != -1)
bind_name = "propertychange";//判断是否为IE内核 IE内核的事件名称要改为propertychange
/输入框键盘离开事件绑定/
$(".className").bind(bind_name, function ()
{
//事件
});

0 关注 分享

要回复文章请先登录注册

Cp0204

Cp0204

<input onfocus=’xxx()‘>
2015-01-05 23:57