Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

【Bug】组件select无法js清空,希望快速修复 #613

Open
weijiawei opened this issue Sep 12, 2019 · 0 comments
Open

【Bug】组件select无法js清空,希望快速修复 #613

weijiawei opened this issue Sep 12, 2019 · 0 comments

Comments

@weijiawei
Copy link

<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: [],
            
        })

image

太坑了,希望尽快修复把,给个官方JS清空select的操作。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant