Datepicker jQuery UI ...设置语言 [英] Datepicker jQuery UI ... set language
本文介绍了Datepicker jQuery UI ...设置语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图设置Datepicker,如下所示:
I tried to set Datepicker, like this:
<script type="text/javascript">
$.datepicker.setDefaults($.datepicker.regional['nl']);
$(function () {
$("#tbDateDiagnostic").datepicker({
numberOfMonths: 2,
showButtonPanel: true,
ateFormat: 'dd/mm/yy'
});
$("#tbDateSend").datepicker({
numberOfMonths: 2,
showButtonPanel: true,
dateFormat : 'dd/mm/yy'
});
});
</script>
但是一直以来,datepicker是法语,而不是荷兰语。
But all the time, the datepicker is in French and not in Dutch.
我做错了吗?
推荐答案
我猜你忘了包括本地化档案:
I'm guessing you forgot to include the localisation file:
<script src="https://jquery-ui.googlecode.com/svn-history/r3982/trunk/ui/i18n/jquery.ui.datepicker-nl.js"></script>
您可能会在此找到其他本地化文件:
https://github.com/jquery/jquery-ui/tree/master/ui/i18n
You may find other localisation files here: https://github.com/jquery/jquery-ui/tree/master/ui/i18n
这是一个演示: http://jsfiddle.net/ repw4 / 418 /
这篇关于Datepicker jQuery UI ...设置语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文