标签:name 同事 gen indexof 检测 code ace cti 事件
今天同事的项目有这个问题,用我的安卓手机输入中文是ok的,但是苹果手机就不行
使用keyup事件检测文本框内容: $(‘#keyup_i‘).bind(‘keyup‘, function(){ $(‘#keyup_s‘).text($(this).val()); 使用oninput以及onpropertychange事件检测文本框内容: //先判断浏览器是不是万恶的IE,没办法,写的东西也有IE使用者 var bind_name = ‘input‘; if (navigator.userAgent.indexOf("MSIE") != -1){ bind_name = ‘propertychange‘; } $(‘#inputorp_i‘).bind(bind_name, function(){ $(‘#inputorp_s‘).text($(this).val()); }) 标签:name 同事 gen indexof 检测 code ace cti 事件
原文地址:http://www.cnblogs.com/topcoder/p/7560768.html