如何取得中文输入的真实长度?

for(vari=0;i<zForm.postBody.value.length;i++){if(zForm.postBody.value.charCodeAt(i)>255)docLen+=2;elsedocLen+=1;}

相关推荐

评论

展开