UNPKG
nokit-app
Version:
latest (1.0.0)
1.0.0
this is an example app
nokit.org
nokit-app
/
controllers
/
home.js
14 lines
(13 loc)
•
240 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/** * 定义 HomeController **/
var
HomeController = module.exports =
function
(
)
{ };
/** * indexAction **/
HomeController.prototype.index =
function
(
)
{
var
self
= this;
self
.
render
(
"home"
, {
"name"
:
"MVC"
}); };