Home > Web Front-end > JS Tutorial > body text

jQuery Tools Dateinput usage introduction_jquery

WBOY
Release: 2016-05-16 17:51:49
Original
1002 people have browsed it

帮助文档:传送门
html

复制代码 代码如下:




jQuery Tools dateinput demo



href="http://jquerytools.org/media/css/dateinput/large.css"/>







<script> <br>$(function () { <br>$(":date").dateinput({ <br>lang: 'zh-CN', <br>format: 'dddd dd, mmmm yyyy', <br>offset: [30, 0] <br>}); <br>}) <br></script>



CSS
我直接用他们的
http://jquerytools.org/media/css/dateinput/large.css
汉化:
query.tools.date-zh-CN.js
复制代码 代码如下:

jQuery(function () {
$.tools.dateinput.localize("zh-CN", {
months: '一月,二月,三月,四月,五月,六月,七月,'
'八月,九月,十月,十一月,十二月',
shortMonths: '一,二,三,四,无,六,七,'
'八,九,十,十一,十二',
days: '星期日,星期一,星期二,星期三,星期四,星期五,星期六',
shortDays: '日,一,二,三,四,五,六'
});
});

名称不区分大小写,所以zh-CN就要lang: 'zh-CN'
这篇就这样简单完结了吧。其他的控件如果用mvc开发,mvc有自带的提示错误等等。jQuery-Tools这系列就翻译一些大家经常要用的jQuery工具。
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template