1. 程式人生 > >js object template

js object template

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 Functions
return { // public functions init: function() { handleTest(); } }; }(); //== Class Initialization jQuery(document).ready(function() { Test.init(); });

js object template