Zi 字媒體
2017-07-25T20:27:27+00:00
javascript下中文/漢 字和Unicode編碼/解碼(Encode/Decode)互轉代碼(HTML ConvertZ)
線上Unicode字元轉換
—————
html原始碼:
javascript下漢字和Unicode編碼互轉代碼 var classObj= { ToUnicode:function(str){ return escape(str).replace(/%/g,”\\”).toLowerCase(); }, UnUnicode:function(str){ return unescape(str.replace(/\\/g, “%”)); }, copyingTxt:function(str) { document.getElementById(str).select(); document.execCommand(“Copy”); } }
寫了
5860316篇文章,獲得
23313次喜歡