javascript中的中文字符串比较使用如下方法if(中文比较.charCodeAt() 中文比较.charCodeAt()) //tr
javascript中的中文字符串比较
使用如下方法
if("中文比较".charCodeAt() == "中文比较".charCodeAt()) //true
if("中文比较".charCodeAt() == "英文比较".charCodeAt()) //false
javascript中的中文字符串比较
使用如下方法
if("中文比较".charCodeAt() == "中文比较".charCodeAt()) //true
if("中文比较".charCodeAt() == "英文比较".charCodeAt()) //false