1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<
div
class
=
"ys-datetimepicker"
>
<
input
class
=
"form-control"
size
=
"16"
type
=
"text"
value
=
"2015-10-01"
readonly
=
""
/>
</
div
>
<
script
>
$(".ys-datetimepicker input").datetimepicker({
language: "zh-CN",
format:"yyyy-mm-dd",
todayBtn:true,
clearBtn:true,// 自定义属性,true 显示 清空按钮 false 隐藏 默认:true
startView:2,
minView:2,
weekStart: 1,
todayHighlight: 1,
autoclose: 1,
forceParse: 0
});
</
script
>
|
附件是修改后的源代码
附件:http://down.51cto.com/data/2368491
本文转自 antlove 51CTO博客,原文链接:http://blog.51cto.com/antlove/1883214