Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/frankfang/calendar

A calendar
https://github.com/frankfang/calendar

Last synced: 17 days ago
JSON representation

A calendar

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. 样式自定义或多样式