<bdo id='ZvvlH'></bdo><ul id='ZvvlH'></ul>

    <i id='ZvvlH'><tr id='ZvvlH'><dt id='ZvvlH'><q id='ZvvlH'><span id='ZvvlH'><b id='ZvvlH'><form id='ZvvlH'><ins id='ZvvlH'></ins><ul id='ZvvlH'></ul><sub id='ZvvlH'></sub></form><legend id='ZvvlH'></legend><bdo id='ZvvlH'><pre id='ZvvlH'><center id='ZvvlH'></center></pre></bdo></b><th id='ZvvlH'></th></span></q></dt></tr></i><div id='ZvvlH'><tfoot id='ZvvlH'></tfoot><dl id='ZvvlH'><fieldset id='ZvvlH'></fieldset></dl></div>
  1. <tfoot id='ZvvlH'></tfoot>
    1. <legend id='ZvvlH'><style id='ZvvlH'><dir id='ZvvlH'><q id='ZvvlH'></q></dir></style></legend>

      <small id='ZvvlH'></small><noframes id='ZvvlH'>

      MUI Picker Input设置默认时间回显实例代码

      MUI Picker Input设置默认时间回显实例代码 mui('body').on('tap', '#begTime', function () { //日期选择 var dtPicker = new mui.DtPicker({ type: 'date' }); /*参数:'datetime'-完整日期视图(年月日时分) 'date'--年视图(年月日) 'time' --时间视图(时分

        <bdo id='MHOos'></bdo><ul id='MHOos'></ul>

      • <tfoot id='MHOos'></tfoot>
        <legend id='MHOos'><style id='MHOos'><dir id='MHOos'><q id='MHOos'></q></dir></style></legend>

          <small id='MHOos'></small><noframes id='MHOos'>

            <i id='MHOos'><tr id='MHOos'><dt id='MHOos'><q id='MHOos'><span id='MHOos'><b id='MHOos'><form id='MHOos'><ins id='MHOos'></ins><ul id='MHOos'></ul><sub id='MHOos'></sub></form><legend id='MHOos'></legend><bdo id='MHOos'><pre id='MHOos'><center id='MHOos'></center></pre></bdo></b><th id='MHOos'></th></span></q></dt></tr></i><div id='MHOos'><tfoot id='MHOos'></tfoot><dl id='MHOos'><fieldset id='MHOos'></fieldset></dl></div>
                <tbody id='MHOos'></tbody>

                MUI Picker Input设置默认时间回显实例代码
                            mui('body').on('tap', '#begTime', function () {
                                //日期选择
                                var dtPicker = new mui.DtPicker({ type: 'date' });
                                /*参数:'datetime'-完整日期视图(年月日时分)
                                        'date'--年视图(年月日)
                                        'time' --时间视图(时分)
                                        'month'--月视图(年月)
                                        'hour'--时视图(年月日时)
                                */
                                var val = doc.getElementById('begTime').value;
                                if (val != null && val!="") {
                                    // 这里是日期回显
                                    dtPicker.setSelectedValue(val);
                                }
                                dtPicker.show(function (selectItems) {
                                    var y = selectItems.y.text;  //获取选择的年
                                    var m = selectItems.m.text;  //获取选择的月
                                    var d = selectItems.d.text;  //获取选择的日
                                    var date = y + "-" + m + "-" + d;
                
                                    var startTime = doc.getElementById('begTime');
                                    startTime.value = date;
                                })
                            });
                 
                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!
                MUI

                相关文档推荐

                input file上传图片设置的实例代码 div纯input与type/div input type="file" div指明需要图片/div input type="file" accept='image/*' div指明需要多张图片/div input type="file" multiple accept='image/*' div指明调用摄像头获取图片/div input type="fil
                mui消息框alert,confirm,prompt,toast实例 script type="text/javascript" charset="utf-8" //mui初始化 mui.init({ swipeBack: true //启用右滑关闭功能 }); var info = document.getElementById("info"); document.getElementById("alertBtn").addEventL

                  • <i id='JJGKA'><tr id='JJGKA'><dt id='JJGKA'><q id='JJGKA'><span id='JJGKA'><b id='JJGKA'><form id='JJGKA'><ins id='JJGKA'></ins><ul id='JJGKA'></ul><sub id='JJGKA'></sub></form><legend id='JJGKA'></legend><bdo id='JJGKA'><pre id='JJGKA'><center id='JJGKA'></center></pre></bdo></b><th id='JJGKA'></th></span></q></dt></tr></i><div id='JJGKA'><tfoot id='JJGKA'></tfoot><dl id='JJGKA'><fieldset id='JJGKA'></fieldset></dl></div>
                      <tfoot id='JJGKA'></tfoot>
                      • <small id='JJGKA'></small><noframes id='JJGKA'>

                          <tbody id='JJGKA'></tbody>
                      • <legend id='JJGKA'><style id='JJGKA'><dir id='JJGKA'><q id='JJGKA'></q></dir></style></legend>

                        • <bdo id='JJGKA'></bdo><ul id='JJGKA'></ul>