app._loadProject = function(e) {
// do stuff here
// after finished, route to our 'project' section in the app
page.show('/project'); // same as page('/project')
};
在中添加规则
routing.html
:
page('/project', project);
...
function project() {
app.route = 'project';
}