7. 字符数统计(满分50分) 版本1:满分15分 Write a method that counts the number of letters in a string using the following header: public static int countLetters (String s) Write a test program that prompts the user to enter a string and displays the number of occu
使用Javascr ipt实时的计算用户当前输入的字符数函数代码:
Javascr ipt统计字符数
[removed]
function CountWords(obj, show_id){
var fullStr = obj.value;
var charCount = fullStr.length;
var rExp = /[^A-Za-z0-9