ref的属性必须设置 <span data-num="21" ref="dataNum" @click="getData($event)">55</span> getData:function (e) { console.log(this.$refs.dataNum.dataset.num); }