红米note 4X input value赋值不显示
发布于 6 年前 作者 xwu 14061 次浏览 来自 官方Issues

红米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()

},

回到顶部