摘要: ``` js // 中文 转 unicode function chinese_to_unicode(ch,is16 = false) { let num_ten = ch.charCodeAt(ch); if(is16){ return '0x' + num_ten.toString(16); }else{ return num_ten.toString(); } } // unicode 转 阅读全文
posted @ 2019-10-21 16:20 Dai Hanlong 阅读(226) 评论(0) 推荐(0) 编辑