正常 wxml
<view class='content' data-gid='{{item.gId}}' bindtap='openChatView'>
js
openChatView: function (event) {
var $this = this;
console.log(event.currentTarget.dataset.gid)
},
异常
wxml
<view class='content' data-gid='{{item.gId}}' bindtap='openChatView'>
js
openChatView: function (event) {
var $this = this;
console.log(event.currentTarget.dataset.gId)
},