例子:
加密编码参数
"#openMembership?vipList="+encodeURIComponent(JSON.stringify(vipList))
encodeURI() 函数可把字符串作为 URI 进行编码。
加密整个url
encodeURI("http://www.w3school.com.cn/My first/")
例子:
加密编码参数
"#openMembership?vipList="+encodeURIComponent(JSON.stringify(vipList))
encodeURI() 函数可把字符串作为 URI 进行编码。
加密整个url
encodeURI("http://www.w3school.com.cn/My first/")