var t;
var cpLock = false;
$('#keyword').on('compositionstart', function() {
cpLock = true;
});
$('#keyword').on('compositionend', function() {
cpLock = false;
if(!cpLock) {
clearTimeout(t);
t = setTimeout(result, 500);
}
});
$('#keyword').on('input', function() {
if(!cpLock) {
clearTimeout(t);
t = setTimeout(result, 500);
}
var cpLock = false;
$('#keyword').on('compositionstart', function() {
cpLock = true;
});
$('#keyword').on('compositionend', function() {
cpLock = false;
if(!cpLock) {
clearTimeout(t);
t = setTimeout(result, 500);
}
});
$('#keyword').on('input', function() {
if(!cpLock) {
clearTimeout(t);
t = setTimeout(result, 500);
}
});
//执行的方法
function result(){
}