a页面向b也页面跳转并传递参数,但是参数对象,我用JSON.stringify(data)将其转成字符串,然后在b页面JSON.parse()。但但是参数却被截取了,并不完整。没法我有采用$emit 和$once来解决,但是 $emit,和$once第一次打开页面并不会触发。陷入困境。。。。目前想自己写跨页面监听
例子参数
{"shopId":25,"title":"","logo":"","url":"#","goodList":[{"goodId":59,"title":"花花公子加绒夹克男潮保暖加厚外套男春秋冬季款男装男士秋装上衣","isSpec":true,"url":"/pages/product/product-detail/product-detail?goodsId=59","imgUrl":"","sepc":[{"specId":"101,105,","title":"已选:黑色,XL","price":78,"num":1,"imgUrl":""}]}]}
1***@qq.com
- 发布:2019-11-18 09:32
- 更新:2019-11-18 09:32
- 阅读:1849
uni.navigateTo 传递参数过长,会被截取。$emit,和$once第一次打开页面并不会触发
分类:uni-app