编码encodeURIComponent,解码decodeURIComponent
- encodeURI() 函数可把字符串作为 URI 进行编码。
- 如果 URI 组件中含有分隔符,比如 ? 和 #,则应当使用 encodeURIComponent() 方法分别对各组件进行编码。
- decodeURI() 函数可对 encodeURI() 函数编码过的 URI 进行解码。
- decodeURIComponent() 函数可对 encodeURIComponent() 函数编码的 URI 进行解码。
请把需要编码或解码的内容粘贴在这里: