ITeye博客

jquery datepicker 的使用

geshenyi · 2010-10-21 11:25 · JQuery · 编程语言 · jQuery · Markdown

http://www.jqueryui.com/demos/datepicker/#dropdown-month-year 这里显示了各种样式的日历。 可以下载对应的样式,可以看到对应样式的js调用方法。 贴一段自己常用的:仅供参考 [code="java"] //日历效果 $(document).ready(function() { $('#datepicker1').datepicker({ changeMonth: true, changeYear: true, monthNamesShort:['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月'], dateFormat: 'yy-mm-dd', buttonImageOnly: true, yearRange: '1900:2222', clearText:'清除', closeText:'关闭', prevText:'前一月', nextText:'后一月', currentText:'今天', monthNames:['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月'] }); }); [/code]

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。