jQuery 日期格式 [英] jQuery date formatting
本文介绍了jQuery 日期格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用 jQuery 格式化日期.我正在使用以下代码但出现错误:
How can I format the date using jQuery. I am using below code but getting error:
$("#txtDate").val($.format.date(new Date(), 'dd M yy'));
请提出解决方案.
推荐答案
jQuery dateFormat 是一个单独的插件.您需要使用 标签显式加载它.
jQuery dateFormat is a separate plugin. You need to load that explicitly using a <script>
tag.
这篇关于jQuery 日期格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文