插件 jQuery.businessHours 中文 API 文档
🌙
手机阅读
本文目录结构
插件 jQuery.businessHours 中文 API 文档
https://github.com/gEndelf/jquery.businessHours
jQuery 插件允许您轻松显示和管理营业时间
DEMO http://gendelf.github.io/jquery.businessHours/
Usage:
/* initial data */
var operationTime = [
{"isActive":false,"timeFrom":null,"timeTill":null},
{"isActive":false,"timeFrom":null,"timeTill":null},
{"isActive":false,"timeFrom":null,"timeTill":null},
{"isActive":true,"timeFrom":"7:15","timeTill":"18:00"},
{"isActive":true,"timeFrom":"9:00","timeTill":"18:00"},
{"isActive":false,"timeFrom":null,"timeTill":null},
{"isActive":false,"timeFrom":null,"timeTill":null}
];
$(selector).businessHours({
operationTime: operationTime, // list of JSON objects
postInit:function() { // optional
// post-init handler
},
checkedColorClass: "workingBusinssDay", // optional
uncheckedColorClass: "dayOff", // optional
dayTmpl: " ... template content ..." // optional
});