Egret)encodeURI

来源:互联网 发布:淘宝怎么做排名靠前 编辑:程序博客网 时间:2024/05/16 16:21
直接写就可以
var url = encodeURI(window.location.href)


-----

也可以

document.write(encodeURIComponent(test1)+ "<br />")
document.write(decodeURIComponent(test1))
0 0
原创粉丝点击