ios中文模糊搜索兼容问题
$(function(){ var cpLock = true; $("input[name='name']").off().on({ compositionstart: function () {//中文输入开始 cpLock = false; }, compositionend: function () {//中文输入结束 cpLock = true; }, input: function () {//非中文输入结束 if (cpLock){ console.log(3); } } }) });
If the copyright belongs to the longfei, please indicate the source!!!