JavaScript编码转换函数的使用

 

decodeURIComponent("编码")

将编码进行反转义成可读字符串

encodeURIComponent("骑手管理")

将可读字符串转义成编码

 

 

decodeURLencodeURL 是转义整个URI

decodeURL 会将url中的所有编码转成可读字符串

encodeURL 会将url中的所有可读字符串转成编码

 

posted @ 2021-11-18 10:57  偏执狂傲  阅读(117)  评论(0)    收藏  举报