var express = require('express')
var app = express()
console.dir(app.locals.title)
//=> 'My App'
console.dir(app.locals.email)
//=> '[[email protected]](/cdn-cgi/l/email-protection)'
#Attribute
:- |
:- |
app.locals |
Local variables in the application # |
app.mountpath |
Path pattern for mounting sub-apps # |
#Events
:- |
:- |
mount |
The child application is mounted on the parent application, and the event is triggered on the child application # |
#Method
:- |
:- |
app.all() |
# |
app.delete() |
# |
app.disable() |
# |
app.disabled() |
# |
app.enable() |
# |
app.enabled() |
# |
app.engine() |
# |
app.get(name) |
# |
app.get(path, callback) |
# |
app.listen() |
# |
app.METHOD() |
# |
app.param() |
# |
app.path() |
# |
app.post() |
# |
app.put() |
# |
app.render() |
# |
app.route() |
# |
app.set() |
# |
app.use() |
# |