【发布时间】:2010-10-02 14:07:34
【问题描述】:
可能的重复:
Firebug JS warning to jQuery 1.4.2 “The 'charCode' property of a keyup event should not be used. The value is meaningless.” To ignore it?
Firebug: “The 'charCode' property of a keyup event should not be used. The value is meaningless.”
当我开始在文本框中输入时出现此错误:
不应使用 keydown 事件的 'charCode' 属性。该值没有意义。
什么意思?
代码:
$(document).ready(function(){
$('#inputField').bind("blur focus keydown keypress keyup", function(){recount();});
$('input.submitButton').attr('disabled','disabled');
$('#tweetForm').submit(function(e){
tweet();
e.preventDefault();
});
});
【问题讨论】:
-
发布您可能正在运行的任何 javascript。听起来您错误地订阅了 keydown 类型的事件。
-
可能与
recount()有关 -
recount() 用于统计文本框中的字符数
标签: javascript javascript-events