小程序form静态页面跳转

wxml:

<form bindsubmit=’formSubmit’>
    <button type=’submit’ form-type=’submit’>登录</button>
</form>

  

js:

formSubmit:function(e){
    wx.redirectTo({
        url: “/page/index/index”,
    })
}

  

原文地址:https://www.cnblogs.com/deajax/p/11384257.html