uniapp uni.navigateTo 传值传对象

uni.navigateTo({
                url: '/pages/details?obj='+ encodeURIComponent(JSON.stringify(item))
              });

接收:

  onLoad(option) {
      this.item=JSON.parse(decodeURIComponent(option.obj));
  }

 

posted @ 2021-01-26 11:29  凉面好好吃  阅读(7058)  评论(0编辑  收藏  举报