diff --git a/lib/Tpl/common.js b/lib/Tpl/common.js new file mode 100644 index 00000000..ac13e096 --- /dev/null +++ b/lib/Tpl/common.js @@ -0,0 +1,7 @@ +//这里定义一些全局通用的函数,该文件会被自动加载 +/** + * //返回首页 + * global.return_home = function(group, controller, http){ + * http.redirect("/"); + * } + */ \ No newline at end of file