阿西河

所有教程

公众号
🌙
阿西河前端的公众号

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      插件 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
      });
      
      目录
      本文目录
      目录