js object template
阿新 • • 發佈:2018-07-21
asdf jquery == initial emp spa ret hand UNC
//== Class Definition var Test = function() { var login = $(‘#m_login‘); //== Private Functions var funaname = function() { login.removeClass(‘m-login--signin‘); } var handleTest = function() { console.log(‘asdf‘, ‘asdf‘); } //== Public Functionsreturn { // public functions init: function() { handleTest(); } }; }(); //== Class Initialization jQuery(document).ready(function() { Test.init(); });
js object template