小程序form静态页面跳转

wxml:

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

  

js:

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

  

posted @ 2019-08-20 17:21  deajax  阅读(442)  评论(0编辑  收藏  举报