路由跳转:
wx.navigateTo() ==>路由跳转
viewDetail: function (e) {
var ds = e.currentTarget.dataset;
wx.navigateTo({
url: '../detail/detail?id=' + ds.id + '&title=' + ds.title + '&type=ing'
})
}
wx.redirectTo() ==>区别于上面navigateTo()跳转,使用redirecTo(),则没有标题栏返回按钮,因为其打开了新页面的同时,把旧页面也关了
wx.setNavigationBarTitle()==>设置导航栏标题
wx.setNavigationBarTitle({
title: options.title
})
wx.stopPullDownRefresh()
wx.showNavigationBarLoading()
wx.hideNavigationBarLoading()
wx.showToast()
wx.getStorageSync()