Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/frankfang/calendar
A calendar
https://github.com/frankfang/calendar
Last synced: 17 days ago
JSON representation
A calendar
- Host: GitHub
- URL: https://github.com/frankfang/calendar
- Owner: FrankFang
- Created: 2012-09-29T10:16:23.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-08-05T18:29:14.000Z (over 10 years ago)
- Last Synced: 2024-04-17T00:07:28.620Z (7 months ago)
- Language: JavaScript
- Homepage: http://frankfang.github.io/calendar/demo/demo.html
- Size: 124 KB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#calendar
js 日历控件
## 使用
### 1. 准备 HTML
``
2``### 2. 初始化
``var c = new Calendar('c');``
### 3. 调用
``c.hide();``
``c.show();``
### 4. 获取日期
```
c.onDateSelected = function (year, month, date) {
alert(year + '年' + month + '月' + date + '日');
};
```## TODO
1. API 丰富
2. 样式自定义或多样式