1. 复制链接至微信 如果携带参数在路由中,可能导致不能点击跳转至正确地址需要使用 encodeURIComponent 来进行修改
将参数进行转换特殊字符。(注意:encodeURIComponent时,需要把对象数据转string格式)
2.在H5页面进行接收
再使用decodeURIComponent,转回正常数据,再使用JSON.parse即可获取完整数据。
将参数进行转换特殊字符。(注意:encodeURIComponent时,需要把对象数据转string格式)
再使用decodeURIComponent,转回正常数据,再使用JSON.parse即可获取完整数据。