1.微信小程序的動(dòng)畫只能執(zhí)行一次,動(dòng)畫執(zhí)行的是差值:
? ? ? animation.rotate(360).step();
? ? ? animation.rotate(-360).step();
2.mpvue刷新當(dāng)前頁面
if (getCurrentPages().length != 0) {
? ? ? ? ? //刷新當(dāng)前頁面的數(shù)據(jù)
? ? ? ? ? getCurrentPages()[getCurrentPages().length - 1].onShow();
? ? ? ? }
3.組件的props傳遞數(shù)據(jù),組件命名一定要大寫
4.頁面跳轉(zhuǎn)不能跳轉(zhuǎn)到tabar所指向的頁面
如果要跳轉(zhuǎn)到tabbar wx.switchTab(Object object)
5.跳轉(zhuǎn)到上一個(gè)頁面
wx.navigateBack({
? ? delta:1)}