node中的eval vm.runInThisContext
字符串转ASCIII
function foo(test) {
str = ""
for( i=0;i<test.length; i++ ) {
temp = test.charCodeAt(i).toString(16);
str += "\\u"+ new Array(5-String(temp).length).join("0") + temp
}
return str
}
foo('上分')