使用JavaScript实时的计算用户当前输入的字符数函数代码: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>JavaScript统计字符数</title> [removed] function CountWords(obj, show_id){ var fullStr = obj.value; var charCount = fullStr.length; var rExp = /[^