JQuery官方的datepicker有个局限,就是不能精确到分钟或秒,在网上找到一个很好用的插件,并已经用在了我们的项目中。
如果要改成中文,用法如下:
|
1
2
3
4
5
6
7
8
9
10
11
|
$(
function
(){
$(
".jq-date"
).datetimepicker({
timeFormat:
'HH:mm:ss'
,
timeText:
'时间'
,
hourText:
'小时'
,
minuteText:
'分'
,
secondText:
'秒'
,
currentText:
'当前'
,
closeText:
'确定'
});
})
|
传送门:http://trentrichardson.com/examples/timepicker/#alt_examples
本文转自 ustb80 51CTO博客,原文链接:http://blog.51cto.com/ustb80/1285687,如需转载请自行联系原作者
