[关闭]
@Shel 2016-05-11T05:14:27.000000Z 字数 1018 阅读 255

Introduction

CDP SOHO

Author: She.l
Date: 2016-05-11
Translation



Resources Directory

  • calendar.min.js
  • calendar.min.css

Usage

  1. Import resources above.
  2. Add a new element in your page with "id = calendar", required-attributes.
  3. Create an object"settings" and make sure an URLs is assigned to "object.dataURL".
  4. Call the method "Calendar()" with "settings".
  5. If you want to destroy it, just delete the element above one, and all will be clean.

Example

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
……
<link rel="stylesheet" href="../../calendar.min.css">    //Import stylesheet
</head>
<body>
……
<div id="calendar"></div>                        //Add a new element
<script src="../../calendar.min.js"></script>    //Import js file
<script>
    var settings = { dataURL: '...' };          //Create an object
    Calendar(settings);                         //Call the method
</script>
</body>
</html>

Request & Respond


References

【1】.UTC

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注