微信小程序--简单页面跳转

首先对text 设置监听事件
 <view bindtap="toast" class="usermotto">
    <text class="user-motto">{{motto}}</text>
  </view>
然后对该text 设置事件跳转。
  //事件处理函数 点击text
  toast: function() {
    wx.navigateTo({
      url: '../blueberry/blueberry'
    })
  }
今日事今日毕
原文地址:https://www.cnblogs.com/gjack/p/7440172.html