小程序 中文和utf-8轉換

/** 中文轉換utf-8 */code function encodeUTF8(str) {utf-8 return str.replace(/[^\u0000-\u00FF]/g, function ($0) { return escape($0).replace(/(%u)(\w{4})/gi, "&#x$2;") });io }function   /** utf-8轉換中文 */co f
相關文章
相關標籤/搜索