1.index.wxml
<view class="list" data-para="2" bindtap="tapItem">
点我跳转2
</view>
2.index.js
//单项的点击事件
tapItem: function(event) {
var that = this;
//参数获取
var index= event.currentTarget.dataset.para;
console.log(index);
//页面跳转
wx.navigateTo({
url: "/pages/wxdetails/wxdetails"
})
}