`

jquery ui-datapicker格式小结

阅读更多
在jquery data ui-picker中,支持不同的格式,就是当用户选择了日历上的日期后,
显示用户所选的日期格式,例子如下:
<link rel="Stylesheet" type="text/css" href="
http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.16/themes/base/jquery-ui.css"
/>
<script type="text/javascript" 
src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.6.2.min.js">
</script>
<script type="text/javascript" 
src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.16/jquery-ui.min.js">
</script>
<script type="text/javascript">
    $(function () {
        var fmt = {
            dateFormat: $.datepicker.'yy-mm-dd'
        };

        $("#datepic").datepicker(fmt);
    });
</script>
</head>
<body>
<input id="datepic"/>



  其中,用dataFormat去指定实际的格式,常用的格式列表如下图:
分享到:
评论

相关推荐

    jquery-ui-1.8.16

    jquery-ui-1.8.16jquery-ui-1.8.16jquery-ui-1.8.16jquery-ui-1.8.16jquery-ui-1.8.16jquery-ui-1.8.16jquery-ui-1.8.16jquery-ui-1.8.16jquery-ui-1.8.16jquery-ui-1.8.16jquery-ui-1.8.16jquery-ui-1.8.16jquery-...

    jquery-ui-1.8.16.custom.min.js/jquery-ui-1.8.16.custom.css

    这个压缩包包含两个关键文件:`jquery-ui-1.8.16.custom.min.js` 和 `jquery-ui-1.8.16.custom.css`,这些都是jQuery UI的特定版本,即1.8.16。这个版本在当时是一个广泛使用的稳定版本,提供了丰富的功能和组件。 ...

    jquery-ui-1.8.2.custom.min.js,jquery-ui-1.8.4.custom.css

    总的来说,`jquery-ui-1.8.2.custom.min.js`和`jquery-ui-1.8.4.custom.css`是jQuery UI早期版本的实例,它们展示了如何通过定制和最小化来满足特定项目的需要。尽管版本较旧,但理解这些文件背后的原理和用途,有助...

    jquery插件jquery-ui-1.8.2.custom.min.js

    《jQuery UI与jQuery插件深度解析——以jquery-ui-1.8.2.custom.min.js为例》 在Web开发领域,jQuery库以其简洁易用的API和强大的功能深受开发者喜爱。而jQuery UI作为jQuery的一个扩展,提供了丰富的用户界面组件...

    jquery-ui-datepicker中文版

    jquery-ui-日期框扩展成时间框 jquery-ui时间框 基于别人的代码进行修改 jquery-ui-1.8.16.custom.css文件末尾加入以下代码 .ui-timepicker-div .ui-widget-header{ margin-bottom: 8px; } .ui-timepicker-div dl{ ...

    jquery插件jquery-ui-1.8.18.custom.min.js及css文件

    首先,`jquery-ui-1.8.18.custom.min.js` 是 jQuery UI 的一个特定版本,1.8.18 表示该版本发布于2012年,是jQuery UI的一个稳定版本。"custom" 指的是这个版本是经过定制的,意味着开发者可能根据项目需求,只包含...

    jquery-ui-1.10.2.custom

    在这个主题中,我们将深入探讨的是 `jquery-ui-1.10.2.custom` 版本,这是一个定制化的版本,包含了对 jQuery 1.9.1 的支持。 首先,让我们从 `jquery-ui-1.10.2.custom` 的核心组件开始。这个版本提供了包括但不...

    jquery-ui-1.9.2.custom.min.js

    在我们讨论的文件 "jquery-ui-1.9.2.custom.min.js" 中,我们可以看到这是该库的一个特定版本——1.9.2的自定义最小化版本。这个文件的核心在于“定制”和“最小化”,这两个特点使得它在实际项目中更具灵活性和效率...

    jquery ui-1.12.1.custom

    通过访问jQuery UI官网,我们可以定制并下载包含所需组件的压缩包,例如“jquery-ui-1.12.1.custom”这个文件,它可能包含了开发者在项目中特选的一些组件和样式。 接下来,我们来看看如何在Servlet环境中使用...

    jquery-uijquery-ui-1.7.3.custom.zip

    jquery-uijquery-uijquery-uijquery-uijquery-uijquery-uijquery-uijquery-uijquery-uijquery-uijquery-uijquery-uijquery-uijquery-uijquery-uijquery-ui

    jquery-ui-1.11.2日期控件datepicker

    ${ctx}/plugins/jquery-ui-1.11.2/jquery-ui.css" &gt; ${ctx}/plugins/jquery-ui-1.11.2/external/jquery/jquery.js"&gt; ${ctx}/plugins/jquery-ui-1.11.2/jquery-ui.js"&gt; ${ctx}/plugins/jquery-ui-1.11.2/jquery-ui-...

    jquery-ui-1.8.6 js库

    《jQuery UI 1.8.6:打造交互式网页的强大工具》 jQuery UI 是一个基于 jQuery JavaScript 库的用户界面插件集合,它为开发者提供了丰富的功能和华丽的样式,帮助构建具有高度交互性的网页应用。这个版本,即 ...

    jquery-ui-1.7.3.custom 完整开发包

    其中,主文件(如 `jquery-ui.js` 或 `jquery-ui.min.js`)包含了所有组件和功能。此外,还可能有按功能分隔的单独文件,如 `draggable.js`、`resizable.js` 等,这些文件分别对应拖放、可调整大小等交互功能。...

    jquery-ui-1.12.1.custom_jqueryui_

    在标题"jquery-ui-1.12.1.custom_jqueryui_"中,"custom"一词暗示了这是一个自定义版本,意味着开发者可能根据需求选择了特定的组件和主题,以优化项目中的性能和功能。 描述中的"jquery ui 1.12.1 for html"进一步...

    jquery-ui-1.10.4.custom

    这个名为 "jquery-ui-1.10.4.custom" 的压缩包文件,很显然是一个自定义版本的 jQuery UI,版本号为 1.10.4。在本文中,我们将深入探讨 jQuery UI 的核心功能、使用场景以及其自定义版本的特性。 ### jQuery UI 的...

    jquery-ui-1.7.3.custom

    `jquery-ui-1.7.3.custom`表示这是一个根据项目需求定制的版本,只包含了所需的特定组件和主题。这有助于减少代码体积,提高页面加载速度,同时避免引入不必要的功能。 四、目录结构分析 压缩包中的文件如下: - ...

    jquery-ui-1.10..3.min.js

    jquery-ui-1.10.3.js 版本 1积分下载 jquery-ui-1.10.3.js 版本 1积分下载 jquery-ui-1.10.3.js 版本 1积分下载

    jquery-ui-1.10.3.min.js

    jquery-ui-1.10.3.min.js

    jquery-ui-1.10.0.custom.zip

    &lt;link rel="stylesheet" href="jquery-ui-1.10.0.custom/css/ui-lightness/jquery-ui.min.css"&gt; &lt;script src="jquery.js"&gt; &lt;script src="jquery-ui-1.10.0.custom/js/jquery-ui.min.js"&gt; 基本对话框"&gt; 这是一...

    jquery-ui-1.10.0.custom

    jquery-ui-1.10.0.custom、jquery-1.10.0.min.js 你

Global site tag (gtag.js) - Google Analytics