mui,只是小时分钟的picker弹框

原创 yinglsc 随笔 mui 116阅读 2018-03-19 16:45:28 举报

<li class="mui-table-view-cell">
<a class="mui-navigate-right dingsqdCheck_cont1"><span>起始日期</span>
<a id='demo4' onclick="start()" class="btn dingsqdCheck_cont2 startrq">请选择</a>
</a>
</li>
function start(){
var start = localStorage.startTime;
var option ={type: "date"};
if(start!=null){
option ={type: "date", value :start};
}
var dtPicker = new mui.DtPicker(option);
dtPicker.show(function(e) {
localStorage.startTime = e.value;
$(".startrq").text(e.value);
});
}

评论 ( 0 )
最新评论
暂无评论

赶紧努力消灭 0 回复