encodeURI() 编码整个 URI(URL),但不会编码 :/?#&= 这些特殊字符 encodeURI("my page.asp")"my%20page.asp"
decodeURI() 解码由 encodeURI() 处理过的 URI decodeURI("my%20page.asp")"my page.asp"
encodeURIComponent() 更严格,编码单个 URI 组件(会编码 :/?#&= 这些字符) encodeURIComponent("my page.asp")"my%20page.asp"
decodeURIComponent() 解码 encodeURIComponent() 处理过的 URI 组件 decodeURIComponent("my%20page.asp")"my page.asp"

1. window 相关属性

2. window 相关方法