博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
miniui datepicker 二次加工
阅读量:7289 次
发布时间:2019-06-30

本文共 1385 字,大约阅读时间需要 4 分钟。

function onshowpopup(){

$(".mini-calendar-timespinner").css({"width":"180px","height":"100px","margin":"10px"});
$(".mini-calendar-views").parent().css({"display":"none"});
$(".mini-calendar-timespinner").find(".mini-buttonedit-border").css({"height":"100px"})
$(".mini-calendar-timespinner").find(".mini-buttonedit-border").find(".mini-buttonedit-button").css({"height":"100px"});
$(".mini-calendar-timespinner").find(".mini-buttonedit-border").find(".mini-buttonedit-input").css({"font-size":"20pt","text-align":"center","padding":"20% 0"});
//debugger;
}

onshowpopup="onshowpopup"

 

datepicker获取焦点时弹出列表的做法:

οnfοcus="onfocus"

function onfocus(e){

  this.showPopup();

}

 

 

修过time值

function onshowpopup_time() {

if ($(".mini-calendar-footer .mini-buttonedit-input")[0].old_time_onchange == undefined)
$(".mini-calendar-footer .mini-buttonedit-input")[0].old_time_onchange = $(".mini-calendar-footer .mini-buttonedit-input")[0].onchange;
$(".mini-calendar-footer .mini-buttonedit-input")[0].onchange = function (e) {

if (this.value == undefined)

return;

if (this.value.indexOf(":") == -1) {

if (this.value.length == 4) {
this.value = this.value.substring(0, 2) + ":" + this.value.substring(2, 4);
}
if (this.value.length == 3) {
this.value = this.value.substring(0, 1) + ":" + this.value.substring(1, 3);
}
}
this.old_time_onchange();
};

}

转载于:https://www.cnblogs.com/coolyylu/p/6076144.html

你可能感兴趣的文章
ZZULIOJ 1898: 985的数字难题 【水题】
查看>>
移动tempdb导致数据库服务不能启动
查看>>
[BEC][hujiang] Lesson04 Unit1:Working life ---Reading + Listening &Grammar & Speaking
查看>>
AspNet GridView Excel 下载 Excel 导出
查看>>
习题整理,二叉树后续遍历得到指定节点到其祖先的路径
查看>>
输入数字和小数点
查看>>
CRUD全栈式编程架构之服务层的设计
查看>>
day8--socketserver作业
查看>>
JAVA自带的加密算法-MD5\SHA1\BASE64
查看>>
React + Redux 实现的个人博客
查看>>
[BZOJ1597][Usaco2008 Mar]土地购买(斜率优化)
查看>>
算法模板——平衡树Treap
查看>>
【BZOJ】1984 月下“毛景树”
查看>>
iOS 枚举器NSEnumerator
查看>>
【CodeForces】913 C. Party Lemonade
查看>>
五张图理解一致性Hash原理
查看>>
转 python数据类型详解
查看>>
【转】Delphi 关键字详解
查看>>
四:Ionic Framework不支持Android4.2.2的解决方法
查看>>
转载:JAR包介绍大全用途作用详解JAVA
查看>>