微信小程序 跳转页面刷新页面的数据

wx.navigateTo({
          url: '/pages/attention/index',
          success: function (res) {
            var page = getCurrentPages().pop();  
            if (page == undefined || page == null) return;  
            page.onLoad();  
            console.log("addAttentionService.add: " + code)
          }
        })

猜你喜欢

转载自blog.csdn.net/aspire_cj/article/details/106355409