uniapp踩坑

路由传参传递对象的时候

  传递之前先转字符串 encodeURIComponent(JSON.stringify(item))

  接受之后转json对象JSON.parse(decodeURIComponent(option.item));

posted @ 2020-11-21 09:24  此间少年咦  阅读(220)  评论(0)    收藏  举报