sparrow.js
is a front-end base library, which contains the basic operation of DOM, browser and device judgments, Cookies operations, as well as the browser's own function expansion, etc..
- npm
npm install tinper-sparrow
- cdn
//design.yonyoucloud.com/static/tinper-sparrow/latest/tinper-sparrow.js
- ES6
import { sparrow} from "tinper-sparrow"
- HTML
<script src="//design.yonyoucloud.com/static/jquery/jquery-1.11.2.js"></script>
<script src="//design.yonyoucloud.com/static/tinper-sparrow/latest/tinper-sparrow.js"></script>
Note: sparrow is dependent on jQuery
sparrow.isIE //IE browser returns true, others return to false
sparrow.isDate(new Date()); //Date Object returns true, others return to false
Read the Develop documentation
Developers can participate in the development of sparrow, but also can be based on sparrow two development
clone:
$ git clone git@github.com:iuap-design/tinper-sparrow.git
install:
$ npm install
build:
$ npm run product
If you encounter any problems , submit [issues]((https://github.com/iuap-design/tinper-sparrow/issues),or pull request。