Note: Source code is required for private messages
Script folder
Directory file under script:
Use the effect, solve IE compatibility problems, many benefits! Slowly refer to!
Specific usage:
The front-end introduced JS, write must be JS script!
<script src= "/assets/global/plugins/jquery.min.js" type= "Text/javascript" ></script> must <script src= " .. /.. /scripts/pagekage/common/init.js "type=" Text/javascript "></script> must
JavaScript that must be written on the front-end
<script type= ' text/javascript ' > var _scriptlist = [ '/scripts/pagekage/datastore/datahandle.js ', '/scripts/pages/base/pagebase.js ', ' lpadd.js ' custom js file ]; GLOBAL. Load (_scriptlist, ', function () { GLOBAL. Lpadd.init ();//js processing page }); </script>
Script in Lpadd.js:
GLOBAL. Namespace (' Lpadd ', function () {//lpadd page JS filename lpadd.js this . init = function () {//All events to be executed are in the Init method alert (54564654646); } });
When the page loads, it pops up:
A useful JS plug-in and toolkit