【Bug】组件select无法js清空,希望快速修复
weijiawei opened this issue · 0 comments
weijiawei commented
<div class="weui-cell">
<i class="weui-icon-info-circle"></i>
<div class="weui-cell__hd"><label for="applyDate" class="weui-label">申请日期:</label>
</div>
<div class="weui-cell__bd">
<input class="weui-input" id="applyDate" type="text" value="" readonly="">
</div>
</div>
<div class="weui-cell">
<i class="weui-icon-info-circle"></i>
<div class="weui-cell__hd"><label for="applyDate" class="weui-label"> 申请节次:</label>
</div>
<div class="weui-cell__bd">
<input class="weui-input" id="jc" type="text" value="" readonly="">
</div>
</div>
let oDate = new Date()
let today = oDate.getFullYear() + "/" + (oDate.getMonth() + 1) + "/" + oDate.getDate()
$("#applyDate").val(jinTian)
$("#applyDate").calendar({
dateFormat: 'yyyy/mm/dd',
minDate: today,
onChange: function (p, values, displayValues) {
if (values) {
$("#jc").val()
$("#jc").removeAttr("data-values").removeAttr("value")
}
}
})
$("#jc").select({
title: "请选择节次",
items: [],
})
太坑了,希望尽快修复把,给个官方JS清空select的操作。