wxml <view catchtap="onTap"> <button class=" btns docment" > Go </button> </view>jsPage({ /** * 页面的初始数据 */ data: { onTap: function (enevt) { wx.switchTab({ url: '../post-buys/post-buy' }); } },app.json{ "pages": [ "pages/post/post", "pages/post-buys/post-buy" // 这个地方老是报错!!! ], "window": { "navigationBarBackgroundColor": "#fff" }},
添加回答
举报
0/150
提交
取消