mirror of
https://gitee.com/coder-xiaomo/flashsale
synced 2025-09-12 23:11:38 +08:00
添加Metronic(作为LFS)
This commit is contained in:
33
frontend/static/assets/admin/pages/scripts/custom.js
Normal file
33
frontend/static/assets/admin/pages/scripts/custom.js
Normal file
@@ -0,0 +1,33 @@
|
||||
/**
|
||||
Custom module for you to write your own javascript functions
|
||||
**/
|
||||
var Custom = function () {
|
||||
|
||||
// private functions & variables
|
||||
|
||||
var myFunc = function(text) {
|
||||
alert(text);
|
||||
}
|
||||
|
||||
// public functions
|
||||
return {
|
||||
|
||||
//main function
|
||||
init: function () {
|
||||
//initialize here something.
|
||||
},
|
||||
|
||||
//some helper function
|
||||
doSomeStuff: function () {
|
||||
myFunc();
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
}();
|
||||
|
||||
/***
|
||||
Usage
|
||||
***/
|
||||
//Custom.init();
|
||||
//Custom.doSomeStuff();
|
Reference in New Issue
Block a user