bootstrap框架日期时间之年月选择及汉化
==》上次介绍了bootstrap框架日期时间 开始日期和结束日期选择 http://www.cnblogs.com/wjqblogs/p/4043198.html
今天又做了个只选择年月的日期选择,而且对其进行汉化,如下:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAASIAAAEeCAIAAAChZI83AAAd8ElEQVR4nO2d+3sc1X2H93n4J/w7yaMU33QpSWjTp7RQkhICjYE0KQ2FGASxBAQITkLAhiQEMGqeFickdgpPqE0odohAJXZN4jh2rIulsSXrat0s67ba3dn7dXau/WG0o9HuzOzs5ezZmf28z3nmWc2eOXPO7Hn3nJkdzdejAAAI46FdAQDcj8s1k2Wk4gmQxp2abfQhRZEVRZIVKfcayeCYwDfCuFAz1S4ptxQlWdSWsiJIjZ7U46AdFkl3uGAaIVylmfqVrPYYUZJFSVY7VlaUs4LMCTInypwoc0IDp9wRyApyVlw/PuqxWpcNwxoB3KOZNkuUcqNWVpQ5Qc4IcoqXUrycyEoJTkpk5TgnNWxKZOUEJyWyUoqXU7yUEWQu55sob4xpMK26uEszZX0cUx1LC3IyK8U5KZqRwmkpmBLZlMgmxUADJzYpsikxmBLDaSmakWKclMxKac00SdbO1kAVcYlmG47JiiApnCineDnOSeG0yCZFX0JcjQsrMWEpKixG+MWo0Lgpwi9FhZWYsBoXfAmRTYrhtBjnpBQvc7kxDaZVHfdopl7t4EWZE+QUL8cyUjAl+hLiclRYiAjzIWGazV5h+alAdirATwayDZimAvxUIHuF5afZ7HxIWIgIy1HBlxCDKTGWkVK8zAkyL8rr10WgWfVwj2bqdJGXlLQgxzgpmBK9cWHEyx04G376RKC924+Ul54+EThwLjzi5bxxIZgSY5yUFmReUkRJzvDivnf6vvjC+1vbD9dJ+uIL7+97p4/jRdp9rRzcopmiSOp0UZCTWSmcFn0JccTLPfXR2rELiyPT10AhI9PXjvYvd/b4R7ycLyGG02IyK3GCHM8If/Xtd25+8cQ9By/c/8vLdZLuOXjhc8/9701PHklnBdrdrWTcoJk2lAmSkhHk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BPUruL1etfW1vx+P8uyoVAoEonEYrFkMplOp/NmjC7XTCmYN6qmqVPHaDQaDoeDwSDLsoFAwO/3+wpYI8zAwADpXZCmEZpQ2DH8fn8gEGBZNhgMhsNhdRxTp4scx9mcMSpu0izPtEwmo45p8XhcHdbC4XAoFAqFQsEcbK0YGhqq2b4I0VBN0HqI2mHC4bA6iMXjcXUc008Xiw5livs006aO2piWSqUSiUQ8Hld9i+aI1JDh4eFa7o4EjdYErZ+odqmDWCqV0sYxbbrYQJopBQOaNntUh7VUKpVKpZLJZIIGo6OjVPZbRRq2CclkUu086iCmzRXtD2WKmzRTNpumyqYOa5pvKumaMzExUfudVpfGbILWZ1S71EFMFcy+Y4rLNFMKZo/ayMbzvKZc7ZmamqK162rRyE1QO482gtmfK2o4PvBSIXM5Cu/2mAagdAzvDrEIs1SI20YzFXkzUgFibZmZmanxHqtOAzahsNvk9Sv7HdKdmmnI9cHc3BztKlQKmqBRRj90uWZ6qnKIywN9tB6opAkV9r0G0owiaEI9QLEJ0KwWoAn1ADSzAh9wPYAmVAI0qwVoQj0AzazAB1wPoAmVAM1qAZpQD1Bswv8DbfRTgqphnisAAAAASUVORK5CYII=" alt="" />
引入js
1 jQuery.min.js 2 bootstrap.min.js 3 bootstrap-datetimepicker.min.js 4 bootstrap-datetimepicker.zh-CN.js
html
<input class="form-control" name="sdate" value="${sdate}" type="text" style="width:100px" id="sdate" data-date-format="yyyy-mm" readonly>
jQuery
$('#sdate').datetimepicker({
format: 'yyyy.mm',
weekStart: 1,
todayBtn: 0,
autoclose: 1,
startView: 3,
minView:3,
language: 'zh-CN',
forceParse: 1,
showMeridian: 1
});
另:汉化bootstrap-datetimepicker.zh-CN.js文件
;(function($){
$.fn.datetimepicker.dates['zh-CN'] = {
days: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六", "星期日"],
daysShort: ["周日", "周一", "周二", "周三", "周四", "周五", "周六", "周日"],
daysMin: ["日", "一", "二", "三", "四", "五", "六", "日"],
months: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
monthsShort: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
today: "今日",
suffix: [],
meridiem: ["上午", "下午"]
};
}(jQuery));
bootstrap框架日期时间之年月选择及汉化的更多相关文章
- bootstrap框架日期时间 开始日期和结束日期选择
页面表单查询时,常要求要查询一个日期时间段内的数据,若采用bootstrap框架的datetimepicker插件来控制,需要了解怎么个用法:
- elementUI 日期时间选择器 只能选择当前及之后的时间
日期时间选择器 只能选择当前及之后的时间 <el-date-picker class="input-border-null" prefix-icon="el-ic ...
- CI框架自带的验证工具及汉化
本人自己还是很喜欢CI框架自带的验证工具的,使用方式如下: /** *@blog<http://www.phpddt.com> */ public function do_login() ...
- day01 前端bootstrap框架
day01 django框架之bootstrap框架 今日内容概要 前端框架之bootstrap 该框架支持cv编写前端页面 利用socket模块编写一个简易版本的web框架 利用wsgiref模块编 ...
- 【Bootstrap】bootstrap-datetimepicker日期时间插件
[bootstrap-datetimepicker] datetimepicker是一个比较方便的日期时间插件.有了这个之后,我们可以在类似于表单的地方提供一个友好的日期(时间)输入功能.官方文档:[ ...
- 原生js日期时间插件鼠标点击文本框弹出日期时间表格选择日期时间
原文出处 (这是我从互联网上搜来的,感觉能满足各方面的需求.个人感觉挺不错的,所以后期修改了一下向大家推荐!) 效果图: html代码: <!DOCTYPE html PUBLIC " ...
- Extjs 5 可选择日期+时间的组件DateTimeField
我们都知道ExtJs有日期组件DateField,但直到ExtJs 5.0版本该日期组件也只能选择日期,不能选择时间(具体到时.分.秒),而实际工作中又常常会有需要日期和时间同时选择的需求,我们只能自 ...
- 模块:(日期选择)jquery、bootstrap实现日期下拉选择+bootstrap jquery UI自带动画的日期选择器
一:jquery.bootstrap实现日期下拉选择 点击文本框弹出窗口 弹窗显示日期时间选择下拉 年份取当前年份的前后各5年 天数随年份和月份的变化而变化 点击保存,文本框中显示选中的日期 代码部分 ...
- Mysql 建表时,日期时间类型选择
mysql(5.5)所支持的日期时间类型有:DATETIME. TIMESTAMP.DATE.TIME.YEAR. 几种类型比较如下: 日期时间类型 占用空间 日期格式 最小值 最大值 零值表示 D ...
随机推荐
- Ant Problem: failed to create task or type foreach 问题
用eclipse导出android时总是会出现有类没有导出的现象,感觉非常麻烦,就用ant些了脚本.在eclipse中运行脚本没问题.可是在命令行下运行会出现 Problem: failed to c ...
- Java中的线程池ExecutorService
示例 import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.u ...
- 这样好用的ReactiveCocoa,根本停不下来【转载】
前戏我个人非常推崇ReactiveCocoa,它就像中国的太极,太极生两仪,两仪生四象,四象生八卦,八卦生万物.ReactiveCocoa是一个高度抽象的编程框架,它真的很抽象,初看你不知道它是要干嘛 ...
- openssl源码安装
下载最新的OpenSSL http://openssl.org/source/ ./config make make install 通过命令openssl version或者openssl ...
- iOS对象(数组)转化为JSon字符串
- (void)seabc { NSArray *arry=[NSArray arrayWithObjects:@"0081",@"0082",@"0 ...
- linux 改动rootpassword以及忘记rootpassword
改动rootpassword: $ passwd root 或者sudo passwd root $password: (要求输入旧的密码) $new password:(输入两遍新密码) 忘记r ...
- 自定义下拉刷新控件-CBStoreHouseRefreshControl
本文转载至 http://www.cocoachina.com/ios/20141110/10177.html iOS开发自定义刷新CBStoreHouseRefres 介绍 这是一款在Storeho ...
- WCF基础之设计和实现服务协定
本来前面还有一个章节“WCF概述”,这章都是些文字概述,就不“复制”了,直接从第二章开始. 当然学习WCF还是要些基础的.https://msdn.microsoft.com/zh-cn/hh1482 ...
- 常见寄存器以及常见汇编指令,常见爆破指令 good
CPU的任务就是执行存放在存储器里的指令序列.为此,除要完成算术逻辑操作外,还需要担负CPU和存储器以及I/O之间的数据传送任务.早期的CPU芯片只包括运算器和控制器两大部分.到了近几年,为了使存储器 ...
- python基础教程_学习笔记11:魔法方法、属性和迭代器
版权声明:本文为博主原创文章,未经博主同意不得转载. https://blog.csdn.net/signjing/article/details/31417309 魔法方法.属性和迭代器 在pyth ...