小程序的input输入几个字符的英文绑定了bindblur和bindinput依然不触发

发布于 7 年前作者 guiyingshi15172 次浏览最后编辑 7 年前来自 ask

//填写的数据

inputs: function (e) {

let that = this

let item = e.currentTarget.dataset.model;

let detail = e.detail.value

// console.log(detail)

that.setData({

[item]: detail.trim()

}, function () {

})

},

2 回复
wangyong
wangyong1 楼6 年前

麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)

mofang
mofang2 楼5 年前