mirror of
https://github.com/thinkjs/thinkjs.git
synced 2026-01-25 14:42:47 +00:00
20 lines
476 B
JavaScript
20 lines
476 B
JavaScript
/**
|
|
* Action基类
|
|
* @return {[type]} [description]
|
|
*/
|
|
var action = module.exports = Class(function(){
|
|
return {
|
|
init: function(){
|
|
tag('action_start');
|
|
},
|
|
_get: function(name){
|
|
return __http.req.query[name] || "";
|
|
},
|
|
_post: function(name){
|
|
return __http.req.post[name] || "";
|
|
},
|
|
_param: function(name){
|
|
return this._post(name) || this._get(name);
|
|
}
|
|
}
|
|
}); |