thinkjs/lib/View/BaseController.js
2014-07-04 09:54:51 +08:00

15 lines
341 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* 项目里的Controller基类
* 这里做一些通用的处理逻辑其他Controller继承该类
* @param {[type]}
* @return {[type]} [description]
*/
module.exports = Controller(function(){
'use strict';
return {
init: function(http){
this.super("init", http);
//其他的通用逻辑
}
}
})