🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

jquery-date

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jquery-date

jquery移动端时间插件

Source
npmnpm
Version
1.4.0
Version published
Weekly downloads
31
933.33%
Maintainers
1
Weekly downloads
 
Created
Source

jquery-date npm

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

下一版本计划

  • 不依赖jquery。
  • 使用new重写,配置将不挂在dom上,增加可选回调函数。
  • 滑动性能优化,可能会依赖相关插件(类似iScroll)。

使用方式

commonJS

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

require.js

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

browser

$.date('#date');

demo

请点击 demo page

Keywords

jquery

FAQs

Package last updated on 12 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts