//cookie中文转码
var GB2312UnicodeConverter = { //转码
ToUnicode: function(str) { //中文转unicode
return escape(str).toLocaleLowerCase().replace(/%u/gi, '\\u');
},
ToGB2312: function(str) { //unicode转中文
return unescape(str.replace(/\\u/gi, '%u'));
}
};

  

相关文章:

  • 2021-08-31
  • 2022-12-23
  • 2021-07-21
  • 2022-01-06
  • 2021-06-25
  • 2022-02-15
  • 2021-09-09
  • 2022-12-23
猜你喜欢
  • 2021-10-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-28
  • 2021-10-08
相关资源
相似解决方案