var flag = true;$('#txt').on('compositionstart',function(){flag = false;})$('#txt').on('compositionend',function(){flag = true;})$('#txt').on('input',function(){var _this = this;setTimeout(function(){if(flag){console.log($(_this).val());}},0)})
1200字范文,内容丰富有趣,写作的好帮手!