微信登录

WXML - button标签 - 按钮-跳转

作用:按钮点击跳转页面

.wxml:

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

.js:

  1. Page({
  2. createBtn(){
  3. wx.navigateTo({
  4. url: '../index/index',
  5. })
  6. },
  7. })
WXML - button标签 - 按钮-跳转