标签:private var let ready console nbsp == sign public
//== 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(); });
标签:private var let ready console nbsp == sign public
原文地址:https://www.cnblogs.com/meetrice/p/9347516.html