CodePointAt(0) //返回码点十进制值

eg:

var a="?c";

a.CodePointAt(0);

如果想要十六进制可以使用toString();

eg:

var a="?c";

a.CodePointAt(0).toString(16);