收藏
回答

自定义组件中做页面跳转为什么会跳转两次,onLoad执行两次?

自定义组件中做页面跳转为什么会跳转两次,onLoad执行两次?


Component({

  /**

   * 组件的属性列表

   */

  properties: {


  },


  /**

   * 组件的初始数据

   */

  data: {


  },


  /**

   * 组件的方法列表

   */

  methods: {

。。。。。。

  pageLifetimes: {

    show: function() {

      let that=this;

      // 页面被展示

      console.log("components selProductType is onShow ......")

      //that.triggerEvent('exePageMethod', { content: '我是谁'});

    },

  }

})

回答关注问题邀请回答
收藏

1 个回答

  • 卡卡
    卡卡
    2021-07-16

    只能是因为你的代码里跳了两次。

    2021-07-16
    有用
    回复
登录 后发表内容