mobile-calendar icon indicating copy to clipboard operation
mobile-calendar copied to clipboard

:calendar:A mobile calender plugin.(jQuery手机移动端日历日期选择)

mobile calender

GitHub stars npm version GitHub issues GitHub license npm

A mobile calender plugin.

DEMO>>

demo-images

Be dependent on jQuery(Zepto) and Iscroll library.

API

How to use

Download mobile-calendar folder and include it in your HTML document :

<link href="./mobile-calendar/index.css" rel="stylesheet" type="text/css" />

<script src="./mobile-calendar/index.js"></script>
$(document).date();

//or
$(document).date({
    theme:"date",
    fromat: 'yyyy/mm/dd'
});

Of course, in your HTML you should add <div id="datePlugin"></div>. Or you can refer to my demo: ./test/index.html

Parameters

  • theme:default data , only show date;datetime show date and time.
  • fromat:Style . default yyyy/mm/dd and yyyy/mm/dd hh:ii. Example:
    • yyyy-mm-dd and yyyy-mm-dd hh:ii
    • yyyy年mm月dd日 and yyyy年mm月dd日 hh时ii分

Authors

Hancoson

MIT