Giter VIP home page Giter VIP logo

datepicker's Introduction

datePicker

描述

一个适合移动端的日期选择插件,支持ios,andriod,PC端主流浏览器

DEMO

demo

依赖(由于iscroll5下滑动反弹太严重,换成iscroll4)

jquery 1.9+或者Zepto,iscroll4

使用:

引入插件脚本和样式后,使用类似:$('#date').datePicker(opt);

opt参数

beginyear

开始年份(默认2010开始)

endyear

结束年份(默认到2020)

days

数组,默认['周日','周一','周二','周三','周四','周五','周六']

beginhour

开始的小时

endhour

结束的小时

beginminute

开始的分钟

endminute

结束的分钟

curdate

布尔值,若为true,插件初始化时始终指向当前时间,若为false,初始化时指向input的value值,默认为false

theme

  • date:可选择年,月,日
  • datetime:可选择年,月,日,小时,分钟
  • time:可选择小时,分钟
  • month:可选择年,月

event

调出插件的事件,默认为click

scrollOpt

iscroll4滚动设置,详情参见iscroll4

callBack

回调函数,按确认后执行的函数,默认function(){}

datepicker's People

Contributors

bryant1410 avatar ddd702 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.