jQuery时间控件说明文档

来源:互联网 发布:淘宝马云能占多少股份 编辑:程序博客网 时间:2024/05/19 14:39

OptionsDate format syntax

KeyDefault valueDescriptiondisplayArea""Relative jQuery traverse method(s); find first matched element and show the date in it. eg ".siblings('div.dispArea')"button""Relative jQuery traverse method(s); find first matched element and bind show/hide event for calendar. eg ".siblings('button')"flat""(String) relative jQuery traverse method(s); find first matched element (Should be a block element) and place the flat calendar within. eg ".parent().siblings('div.flatCal')"eventName"click"event that will trigger the calendar popup, no "on" prefixifFormat"%Y/%m/%d"date format that will be stored in the input fielddaFormat"%Y/%m/%d"the date format that will be used to display the date in displayAreasingleClicktrueIs the calendar is in single click mode?dateStatusFuncnullfunction that receives a JS Date object and should return true if that date has to be disabled in the calendar, or String for CSS classes.dateTextnullFunction to translated date to textfirstDaynullnumeric: 0 to 6. "0" means display Sunday first, "1" means display Monday first, etc. Defaults to language setting.align"Br"alignment; See belowrange2999array with 2 elements; the range of years availableweekNumberstrueDisplay week numbers?flatCallbacknullfunction that receives a JS Date object and returns an URL to point the browser to (for flat calendar)onSelectnullfunction that gets called when a date is selected. You don't have to supply this (the default is generally okay)onClosenullfunction that gets called when the calendar is closed.onUpdatenullfunction that gets called after the date is updated in the input field. Receives a reference to the calendar.datenullthe date that the calendar will be initially displayed toshowsTimefalseShould calendar include a time selector?timeFormat"24"the time format; can be "12" or "24"electrictrueif true then given fields/date areas are updated for each move; otherwise they're updated only on closestep2configures the step of the years in drop-down boxes.positionnullconfigures the calendar absolute position; default: nullcachefalseReuse the same calendar object, where possible ?showOthersfalseShow days from other months too ?multiplenull,Allow multiple dates - TODOdebugfalseWrite debug info to firebug console

SymbolMeaning%aabbreviated weekday name%Afull weekday name%babbreviated month name%Bfull month name%Ccentury number%dthe day of the month ( 00 .. 31 )%ethe day of the month ( 0 .. 31 )%Hhour ( 00 .. 23 )%Ihour ( 01 .. 12 )%jday of the year ( 000 .. 366 )%khour ( 0 .. 23 )%lhour ( 1 .. 12 )%mmonth ( 01 .. 12 )%Mminute ( 00 .. 59 )%na newline character%p`PM'' or `AM''%P`pm'' or `am''%Ssecond ( 00 .. 59 )%snumber of seconds since Epoch (since Jan 01 1970 00:00:00 UTC)%ta tab character%U, %W, %Vthe week number%uthe day of the week ( 1 .. 7, 1 = MON )%wthe day of the week ( 0 .. 6, 0 = SUN )%yyear without the century ( 00 .. 99 )%Yyear including the century ( ex. 1979 )%%a literal % character

原创粉丝点击