在input标签上添加blur事件,然后获取event上的数据js写法如下:function test(ev){var data = ev.target.dataset.idconsle.log(data)}小程序“日记备忘录” 可以体验的