红米note 4X ,安卓7.0, MIUI10.3稳定版
给input标签的value赋值,不展示.结果打开调试模式就显示了,关了就又不显示了。。。
<view class="hos_list" bindtap="search1" data-key="{{item.key_words}}">
<input placeholder="输入名称" placeholder-class="placeholder" bindfocus='showHistory' bindblur='onShowHistory' bindinput="inputKey" value="{{key}}" confirm-type='search' bindconfirm='search'></input>
j s:
search1: function (e) {
this.setData({
key: e.currentTarget.dataset.key
})
this.search()
},
麻烦提供能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)