Giter Club home page Giter Club logo

jdatepicker's Introduction

#jDatePicker日期控件

描述

日历控件,含放假节目,原生控件,无需引用jQuery实例

参数说明(*为必填参数

名称 说明
el* 接收日期的文本框
startDate 开始时间,字串格式:例2012-01-01,默认为今天
endDate 结束时间,字串格式:例2012-12-12,默认为2099
isShowLunar 是否显示农历,默认不显示
doubleCalendar 是否显示双列日历,默认不显示
dateFmt 返回的时间格式,例yyyy-MM-dd 周W
onpicker 选择日期事件,不填则为文本框填充

调用实例(代码)

<input id="datepicker" />
<link type="stylesheet" href="https://raw.githubusercontent.com/uje/jDatePicker/master/jDatePicker-blue.css" />
<script src="https://raw.githubusercontent.com/uje/jDatePicker/master/jDatePicker.js"></script>
<script>
    var dp = jDatepicker({
         el: "datepicker",                //使用对象的文本框
         startDate: "2012-4-1", //开始日期(可不填,默认为今天)
         endDate: "2012-5-20",  //结束日期(可不填,默认为2099年)
         isShowLunar: false,               //是否显示农历(可不填,默认不显示)
         doubleCalendar: true,            //是否显示双列(可不填,默认显示单列)
         dateFmt: "yyyy-MM-dd"           //日期格式,(可不填,默认为yyyy-MM-dd)
     });
</script>

jdatepicker's People

Contributors

uje avatar

Watchers

James Cloos 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.