textarea上绑定了bindlinechange事件真机上失效?
发布于 7 年前 作者 yefang 1934 次浏览 来自 官方Issues

textarea上绑定了bindlinechange事件

// 输入框行数变换 lineChange: function(e) { let that = this; if (e.detail.lineCount == 2) { that.setData({ lineHeight: true }) } else { that.setData({ lineHeight: false }) } },


在开发工具上是没问题的,但是到真机上就没用,还是默认的lineheight


1 回复

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

回到顶部