更新时间:2023-02-23 18:11:01
您可以使用 input
(FF) 和 propertychange
(所有其他)事件来捕获所有表单输入包括键盘和人民币剪切粘贴.
You can use the input
(FF) and propertychange
(all others) events to catch all forms of input including keyboard and rmb cut paste.
$('input').bind('input propertychange', function() {
$('#output').html($(this).val());
});