JavaScript给url网址进行encode编码,使用encodeURIComponent即可
var myUrl = 'http://www.baidu.com'; var myOtherUrl = "http://www.75271.com/index.html?url=" + encodeURIComponent(myUrl);
JavaScript给url网址进行encode编码,使用encodeURIComponent即可
var myUrl = 'http://www.baidu.com'; var myOtherUrl = "http://www.75271.com/index.html?url=" + encodeURIComponent(myUrl);