 
						引入文件
在页面head引入YUI3.x.x种子
| 1 | 
配置
| 1 2 3 4 5 6 7 8 9 10 11 12 13 | varconfig = {    modules: {        'price-calendar': {            fullpath: 'price-calendar.js', //根据项目路径调整            type    : 'js',            requires: ['price-calendar-css']        },        'price-calendar-css': {            fullpath: 'price-calendar.css', //根据项目路径调整            type    : 'css'        }    }}; | 
使用
| 1 2 3 4 | YUI(config).use('price-calendar', function(Y) {    varoCalendar = newY.PriceCalendar();        //do something}) | 
date
概述
(默认值:当前日期) 日历初始日期
类型
Date (日期对象) 或 String (日期字符串)
data
概述
(默认值:null) 酒店房态数据
类型
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | Object{    "2012-05-01": {        "price": "100",        "roomNum": "10"    },    "2012-05-02": {        "price": "120",        "roomNum": "1"    },    "2012-05-03": {        "price": "150",        "roomNum": "25"    }  } | 
count
概述
(默认值:2) 日历个数
类型
Number
minDate
概述
(默认值:null) 允许操作的最小日期
类型
Date (日期对象) 或 String (日期字符串)
maxDate
概述
(默认值:null) 允许操作的最大日期
类型
Date (日期对象) 或 String (日期字符串)
depDate
概述
(默认值:空) 入住时间
类型
String (日期字符串)
endDate
概述
(默认值:空) 离店时间
类型
String (日期字符串)
afterDays
概述
(默认值:0) 等价于设置minDate和maxDate,minDate未设置时取当前日期
类型
Number
特别申明:
			本站所有资源都是由网友投稿发布,或转载各大下载站,请自行检测软件的完整性!
			本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!
			如有侵权请联系我们删除下架,联系方式:lei1294551502@163.com