微信登录

微信小程序bindtap

作用:按钮点击跳转页面

.wxml:

  1. <button bindtap="createBtn">按钮</button>

.js:

  1. Page({
  2. createBtn(){
  3. wx.navigateTo({
  4. url: '../index/index',
  5. })
  6. },
  7. })
微信小程序bindtap