Kalendae有以下特點:
- 完全基於JavaScript,無依賴,無jQuery。
- 可自定義皮膚,基本不用圖片,完全靠CSS檔案定製皮膚。
- 日期選擇支援單天,也支援多天區間範圍。
- 自定義展示的日期數字。
- 可直接放在頁面上用作日曆控制元件。
- 對於選中的日期,可以自定義日期格式。
- 提供一些常用的日期轉換函式。
Kalendae使用示例程式碼:
new Kalendae(document.body, { months:1, mode:'single', selected:Kalendae.moment().subtract({M:1}) }); new Kalendae({ attachTo:document.body, months:2, mode:'single', selected:Kalendae.moment().subtract({M:1}) }); new Kalendae({ attachTo:document.body, months:3, mode:'single', selected:Kalendae.moment().subtract({M:1}) });本文作者:碼農網 – 小峰
來自:碼農網
評論(2)