一、uniapp点击事件后,拿到当前dom自定义属性data的值 <button :data-type="1" @click="handClick">完成任务</button> handClick(e){ this.type= e.currentTarget.dataset.type }