时间选择器
来源:互联网 发布:淘宝网做包邮亏 编辑:程序博客网 时间:2024/04/28 23:51
依赖<script src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
//时间选择插件汉化
jQuery(function($) {$("#timestart").datepicker({
onSelect:function(dateText,inst){
$("#timeend").datepicker("option","minDate",dateText);
}
});
$("#timeend").datepicker({
onSelect:function(dateText,inst){
$("#timestart").datepicker("option","maxDate",dateText);
}
});
$.datepicker.regional['zh-CN'] = {
closeText: '关闭',
prevText: '<上月',
nextText: '下月>',
currentText: '今天',
monthNames: ['一月', '二月', '三月', '四月', '五月', '六月',
'七月', '八月', '九月', '十月', '十一月', '十二月'
],
monthNamesShort: ['一', '二', '三', '四', '五', '六',
'七', '八', '九', '十', '十一', '十二'
],
dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
dayNamesShort: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'],
dayNamesMin: ['日', '一', '二', '三', '四', '五', '六'],
dateFormat: 'yy-mm-dd',
firstDay: 1,
isRTL: false
};
$.datepicker.setDefaults($.datepicker.regional['zh-CN']);
});
阅读全文
0 0
- 时间选择器
- 时间选择器
- 时间选择器
- 时间选择器
- 时间选择器
- 时间选择器
- 时间选择器
- 时间选择器
- 时间选择器
- 时间选择器
- 时间选择器
- 时间选择器
- 时间选择器
- 时间选择器
- 时间选择器
- 时间选择器和日期选择器
- [Android]时间选择器/日历选择器/选择器dialog
- 时间选择器----js
- android Utils大集合
- Android各控件绚丽Dome下载
- hibernate使用
- 06-IPTABLES.FIREWALLD防火墙
- react省市二级联动
- 时间选择器
- Android JNI反射调用Java构造方法、成员方法和静态方法
- 关于kettle初始化的那点事2
- Java Web项目开发流程
- MySQL优化
- python 科学计算环境安装(xgboost)
- UVM-regmodel
- java读取properties配置文件
- perl 爬虫(一)