mui的时间控件 picker
来源:互联网 发布:孙兴民热刺本赛季数据 编辑:程序博客网 时间:2024/04/28 21:47
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<title></title>
<!--标准mui.css-->
<link rel="stylesheet" href="../css/mui.min.css">
<!--App自定义的css-->
<link rel="stylesheet" type="text/css" href="../css/app.css" />
<link rel="stylesheet" type="text/css" href="../css/mui.picker.min.css" />
<style>
html,
body,
.mui-content {
height: 0px;
margin: 0px;
background-color: #efeff4;
}
h5.mui-content-padded {
margin-left: 3px;
margin-top: 20px !important;
}
h5.mui-content-padded:first-child {
margin-top: 12px !important;
}
.mui-btn {
font-size: 16px;
padding: 8px;
margin: 3px;
}
.ui-alert {
text-align: center;
padding: 20px 10px;
font-size: 16px;
}
* {
-webkit-touch-callout: none;
-webkit-user-select: none;
}
</style>
</head>
<body>
<div class="mui-content">
<div class="mui-content-padded">
<h5 class="mui-content-padded">常规示例</h5>
<button id='demo4' class="btn mui-btn mui-btn-block">选择日期 ...</button>
<div id='result' class="ui-alert"></div>
</div>
</div>
<script src="../js/mui.min.js"></script>
<script src="../js/mui.picker.min.js"></script>
<script>
document.getElementById("demo4").addEventListener('tap', function() {
var dtpicker = new mui.DtPicker({
//value:self.AuthorizationTime,
type: "date",//设置日历初始视图模式
//beginDate: new Date(self.AuthorizationTime),//设置开始日期
//endDate: new Date(self.nowDate.getFullYear(), self.nowDate.getMonth(), self.nowDate.getDate()),//设置结束日期
labels: ['年', '月', '日']//设置默认标签区域提示语
}//时间/日期别名
)
dtpicker.show(function(e) {
document.getElementById('result').html=e.text;
//changedate(e.text);
})
});
//可以转换格式017-01-01 转换成2017年1月1号
function changedate(result)
{
}
</script>
</body>
</html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<title></title>
<!--标准mui.css-->
<link rel="stylesheet" href="../css/mui.min.css">
<!--App自定义的css-->
<link rel="stylesheet" type="text/css" href="../css/app.css" />
<link rel="stylesheet" type="text/css" href="../css/mui.picker.min.css" />
<style>
html,
body,
.mui-content {
height: 0px;
margin: 0px;
background-color: #efeff4;
}
h5.mui-content-padded {
margin-left: 3px;
margin-top: 20px !important;
}
h5.mui-content-padded:first-child {
margin-top: 12px !important;
}
.mui-btn {
font-size: 16px;
padding: 8px;
margin: 3px;
}
.ui-alert {
text-align: center;
padding: 20px 10px;
font-size: 16px;
}
* {
-webkit-touch-callout: none;
-webkit-user-select: none;
}
</style>
</head>
<body>
<div class="mui-content">
<div class="mui-content-padded">
<h5 class="mui-content-padded">常规示例</h5>
<button id='demo4' class="btn mui-btn mui-btn-block">选择日期 ...</button>
<div id='result' class="ui-alert"></div>
</div>
</div>
<script src="../js/mui.min.js"></script>
<script src="../js/mui.picker.min.js"></script>
<script>
document.getElementById("demo4").addEventListener('tap', function() {
var dtpicker = new mui.DtPicker({
//value:self.AuthorizationTime,
type: "date",//设置日历初始视图模式
//beginDate: new Date(self.AuthorizationTime),//设置开始日期
//endDate: new Date(self.nowDate.getFullYear(), self.nowDate.getMonth(), self.nowDate.getDate()),//设置结束日期
labels: ['年', '月', '日']//设置默认标签区域提示语
}//时间/日期别名
)
dtpicker.show(function(e) {
document.getElementById('result').html=e.text;
//changedate(e.text);
})
});
//可以转换格式017-01-01 转换成2017年1月1号
function changedate(result)
{
}
</script>
</body>
</html>
阅读全文
0 0
- mui的时间控件 picker
- Mui picker修改时间控件默认选中时间,开始时间,结束时间,及日期格式
- element 的时间控件,有关v-model,:picker-options,@change
- VC++ 获取Date Time Picker 控件的时间并格式化输出
- Date Time Picker控件的使用
- IOS风格的日期控件(Time picker)
- Iphone开发(七)date picker 和 picker view,较复杂的控件
- Iphone开发(七)date picker 和 picker view,较复杂的控件
- Iphone开发(七)date picker 和 picker view,较复杂的控件
- Iphone开发(七)date picker 和 picker view,较复杂的控件
- picker View控件使用
- Date picker 控件简介
- 类似ios的picker的风格地址选择控件
- android的日期选择控件Picker的使…
- 仿Iphone的轮子时间选择器(wheel picker)
- 自定义时间选择器的实现(非picker)
- VC/MFC获得data time picker控件的值
- Android的自定义数字Picker控件-NumberPicker使用方法
- 什么是对象,什么是类,什么是面向对象的编程语言,什么是面向面向对象的编程思想?
- 单词倒置
- JSP
- ubuntu16.04+gtx1060+cuda8.0+caffe安装、测试经历
- LINTCODE——统计前面比自己小的数的个数
- mui的时间控件 picker
- selenium技术学习-定位方法之一
- PNChart 的使用
- oracle,for update锁表后,查看被锁表以及解锁
- Intellij IDEA配置Android SDK开发环境
- 漫谈数据仓库之拉链表(原理、设计以及在Hive中的实现)
- 获取前月第一天最后一天及本月第一天最后一天--Java
- 【第一篇blog】“从A+B Problem到我的第一次NOIP”
- Java Web 中的多条件查询