获得字符的Unicode编码 var strObj = "ABCDEFG"; var code = strObj.charCodeAt(2);//Unicode value of charset 'C' is 67