Skip to content

Latest commit

 

History

History
31 lines (29 loc) · 944 Bytes

README.md

File metadata and controls

31 lines (29 loc) · 944 Bytes

jquery-date npm

  • 此插件依赖jquery,且是为移动端而写,也支持pc端的使用,但因为操作不便和样式问题,所以不建议。
  • 支持年月、年月日、年月日时分、年月日时分秒,详细格式见demo.html/jquery.date.js。
  • 时间限制limitTime参数目前只做了年月日限制。

下一版本计划

  • 不依赖jquery,实现无依赖。
  • 使用new重写,配置将不挂在dom上。

使用方式

commonJS

var $ = require('jquery');
require('jquery-date');
$.date('#date');

require.js

require(['jquery-date'],function(){
    $.date('#date');
})

browser

$.date('#date');

demo

请点击 demo page