前端 踩坑笔记:IOS下微信 二次分享 多参数
一种是在请求时对参数做 encodeURIComponent。不能粗暴地 encodeURIComponent(window.location.href),会导致location.origin部分也被编码了
location.origin