小程序 页面 可以用Component 代替Page

时间:2021-06-07 12:20:25   收藏:0   阅读:28

navigateTo 里传的参数  直接在properties里定义就行;

 

另外这种形式的跳转传参传的值只能是字符串,传不了Boolean

      wx.navigateTo({
        url: `/pages/edit-elder/edit-elder?elderId=${id}`,
      });
考虑用JSON.stringify

原文:https://www.cnblogs.com/xiezilailai/p/14857573.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!