当url做参数是,一定要encode url
let url = window.location.href.split('#')[0];
url = encodeURIComponent(url);
当url做参数是,一定要encode url
let url = window.location.href.split('#')[0];
url = encodeURIComponent(url);
转载于:https://my.oschina.net/valiancer/blog/2996191