Apple phone input Chinese does not trigger onkeyup Event

Source: Internet
Author: User

Today my colleague's project has this problem, using my Android phone input Chinese is OK, but the Apple phone is not

使用keyup事件检测文本框内容:  $(‘#keyup_i‘).bind(‘keyup‘, function(){          $(‘#keyup_s‘).text($(this).val()); }It 's supposed to be the way it is, and now it's going to be OK. 使用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());        }) 

Apple phone input Chinese does not trigger onkeyup Event

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.