JS初始化模板
2018-05-08 18:20
309 查看
(function(w){
//var PAGE_SIZE = 10;
function UserInfo(){
var _this = this;
this.init = function(){
this.bindEvent();
this.initPage();
};
}
UserInfo.prototype = {
bindEvent:function(){
var _this = this;
},
initPage:function(){
var _this = this;
},
}
w.UserInfo = UserInfo;
}(window));
var userInfo = null;
$(function(){
userInfo = new UserInfo();
userInfo.init();
});
//var PAGE_SIZE = 10;
function UserInfo(){
var _this = this;
this.init = function(){
this.bindEvent();
this.initPage();
};
}
UserInfo.prototype = {
bindEvent:function(){
var _this = this;
},
initPage:function(){
var _this = this;
},
}
w.UserInfo = UserInfo;
}(window));
var userInfo = null;
$(function(){
userInfo = new UserInfo();
userInfo.init();
});
相关文章推荐
- js 模板方法模式
- JS定义数组、初始化
- Mustache.js模板引擎使用
- smarty模板 将php数组传递给js变量
- js的onload事件及初始化按钮事件示例代码
- tp5.0 模板url跳转带参数 字符串中js不解析变量
- 所思所想 js模板引擎
- js data日期初始化的5种方法
- Freescale MKL26Z256xxx4初始化模板
- IOSJSBRIGE商品内容模板
- nunjucks.js模板渲染
- js闭包函数与JQuery插件模板
- Node.js合并复用html模板
- 用js写一个模板引擎
- JS前端模板引擎实现
- jquery模板jquery.tmpl.js使用教程(附jquery.tmpl.js下载)
- Node.js 入门笔记(2) - swig模板
- node.js中EJS 模板快速入门教程
- Epii.js 一个极其简单的Js模板引擎
- js:浏览器中模板解释的实现