var str = '中';
var charCode = str.charCodeAt(0);
console.log(charCode); // => 20013;
str.charCodeAt(0).toString(16);//=>"4e2d"
var str = '中';
var charCode = str.charCodeAt(0);
console.log(charCode); // => 20013;
str.charCodeAt(0).toString(16);//=>"4e2d"