绑定了一个点击事件 <view data-idx="{{itemName.mark}}" class="chat-item flex-wrp" wx:for="{{ylInfo}}" wx:for-item="itemName" bindtap="tiao">跳转<view> 下面是事件的内容 tiao:function(e){ wx.navigateTo({ url: '../index/index',//页面跳转相对路径要写清楚且准确 success: function(res){ console.log('跳转到news页面成功')// success }, fail: function() { console.log('跳转到news页面失败') // fail }, complete: function() { console.log('跳转到news页面完成') // complete } }) } //下面是我记录的日志 跳转到news页面失败
添加回答
举报
0/150
提交
取消