3条回答 默认 最新
- 缘来一场梦 2018-03-12 03:38关注
在js里面处理作为参数的url使用encodeURIComponent转义,如:
window.location.href = "abc.html?id=123&url="+encodeURIComponent("http://xxx.com");解决 无用评论 打赏 举报
在js里面处理作为参数的url使用encodeURIComponent转义,如:
window.location.href = "abc.html?id=123&url="+encodeURIComponent("http://xxx.com");