编解码的方法都有哪些
2020-12-01 本文已影响0人
i断章
编码 解码
字符串: escape(str) unescape(str)
url : encodeurI(str) decodeUrl(str)
url组件:encodeURIComponent(str) decodeURLComponent(str)
编码 解码
字符串: escape(str) unescape(str)
url : encodeurI(str) decodeUrl(str)
url组件:encodeURIComponent(str) decodeURLComponent(str)