Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Objective:

To localize the Date Picker field to a specific language将日期选取器字段本地化为特定语言

Code:

The example below uses "zh-CN".下面的例子使用“zh-CN”。

你可以从 You can download the i18n jQuery library for Date Picker from http://code.google.com/p/listr/source/browse/#svn%2Ftrunk%2Flistr%2Flib%2Fjs%2Fui%2Fi18n.下载日期选取器的i18n jQuery库  

Code Block
<script type="text/javascript" src="http://listr.googlecode.com/svn/trunk/listr/lib/js/ui/i18n/ui.datepicker-zh-CN.js" ></script>
<script type="text/javascript">
  $(document).ready(function(){
    $.datepicker.setDefaults($.datepicker.regional['zh-CN']);
  });
</script>