如:$('#test').bind('inputpropertychange',function(){varcc=$(this).val().length;alert(cc);});这个是绑定事件,如不需要用$(this).val().length就行或$('#test').val().length。
恩 写错了