将某个url作为另一个URL的参数
页面内跳转传参如果是url的话可以这样解决
比如这种情况:
http://http://mng.colorv.com/mng/node/#/?ref=‘https://url.cn/5oWh5Mm’
此时可以使用encodeURIComponent对携带的url进行编码处理,如下所示:
“http://http://mng.colorv.com/mng/node/#/?ref=”+encodeURIComponent(‘https://url.cn/5oWh5Mm’)
然后你可以通过decodeURIComponent()进行解码