博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
js unicode处理
阅读量:7007 次
发布时间:2019-06-27

本文共 545 字,大约阅读时间需要 1 分钟。

//岗位详细界面var str="1、\u000D\u21B52、\u000D\u21B53";var pad = function() { var tbl = []; return function(num, n) {  var len = n-num.toString().length;  if (len <= 0) return num;  if (!tbl[len]) tbl[len] = (new Array(len+1)).join('0');  return tbl[len] + num; }}();setValue_Instructions(str);console.log(str)console.log("---------------------")console.log(getValue_Instructions()); "\u21B5".charCodeAt(0).toString(16)-------------------------------------------------------------- "\u21B5".charCodeAt(0).toString(16)String.fromCharCode(72,69,76,76,79)

 

转载地址:http://olutl.baihongyu.com/

你可能感兴趣的文章