ax5core
"ax5core" is a collection of utility functions, designed for use in ax5ui. "ax5core" consist of "ax5" keys.(ax5.info, ax5.util ...) class variable will be added under "ax5.ui".
By these build system, "ax5core" needs only a minimal code and "ax5core" can guarantee the safety, application-compatibility.
Dependencies
Install by bower
You can download ax5core by using bower.
bower install ax5core
bower is web front-end package manager. using bower, you can resolve the plug-in dependencies under the bower_components
folder. (You can change the folder location. .bowerrc )
To install ax5core by bower
is recomended.
http://bower.io/#install-bower will help you.
Install by npm
Otherwise you can download ax5core by using npm.
npm install jquery
npm install ax5core
In npm, you need to solve the problem of plug-in dependencies.
After you download the file by npm install, you have to copy the file where you want to use as a resource for the project.
this process(managing project files) can be optimize by 'gulp' or 'grunt'.
Download code
Insert the "ax5" in the HTML HEAD.
You can determine folder location freely in you project. But be careful not to accidentally caused exactly the path.
<script type="text/javascript" src="https://code.jquery.com/jquery-1.12.3.min.js"></script>
<script type="text/javascript" src="https://cdn.rawgit.com/ax5ui/ax5core/master/dist/ax5core.min.js"></script>
CDN urls
It is CDN url of ax5ui-select. ax5ui offers the CDN services through the rawgit.
https://cdn.rawgit.com/ax5ui/ax5core/master/dist/ax5core.js
https://cdn.rawgit.com/ax5ui/ax5core/master/dist/ax5core.min.js
Basic Usage
You can check whether ax5core is correctly installed, by these basic example code.
ax5.util.date("20111111");
ax5.util.date("20111111", {'return':'yyyy/MM/dd'});
ax5.util.date("20111111", {'return':'yyyy/MM/dd hh:mm:ss', add:{"d":1}} );
"2011/11/12 23:59:00"
API
If you have any questions, please refer to the following gitHub