jQuery Mobile UI DatePicker更改日期格式
|
我正在尝试在JQM UI Datepicker中更改日期格式。
它有一个输入,显示更改日期时的日期。
我需要它以dd / mm / yyyy格式显示。
有人可以帮忙吗?
更新:
我正在尝试,但是没有任何变化:
<script>
//reset type=date inputs to text
$( document ).bind( \"mobileinit\", function(){
$.mobile.page.prototype.options.degradeInputs.date = true;
});
</script>
<script language=\"javascript\">
$(document).ready(function() {
$.datepicker.formatDate(\'dd/mm/yyyy\'); //ADDED HERE
$(\"input[type=\'submit\']\").click(function(e) {
e.preventDefault();
});
});
</script>
没有找到相关结果
已邀请:
2 个回复
渴翅吮斡撤
在这里更多参考
佩疵瓦