微信小程序wepy框架下的页面跳转

版权声明:转载请标明出处 https://blog.csdn.net/qq_41155191/article/details/90240601

在view中添加事件

<view class="item-video" @tap="goNext">
      <button>点击跳转</button>
</view>

设置 


methods = {
      goNext: function () {
        wx.navigateTo({
          url: '../myindex/myindex'  //跳转地址
        })
      }
}

猜你喜欢

转载自blog.csdn.net/qq_41155191/article/details/90240601