摘要: To skip the rest of the middleware functions from a router middleware stack, call next('route') to pass control to the next route. web result: 阅读全文
posted @ 2019-06-12 17:53 嵌入式实操 阅读(81) 评论(0) 推荐(0) 编辑
摘要: Route handlers enable you to define multiple routes for a path. The example below defines two routes for GET requests to the /user/:id path. The secon 阅读全文
posted @ 2019-06-12 17:44 嵌入式实操 阅读(80) 评论(0) 推荐(0) 编辑
摘要: code: use application middleware result: web result: pass id field 阅读全文
posted @ 2019-06-12 17:26 嵌入式实操 阅读(99) 评论(0) 推荐(0) 编辑
摘要: learning express middleware result: request time log: result: write middleware my-middleware.js each request print log option1 and option2 result: 阅读全文
posted @ 2019-06-12 16:52 嵌入式实操 阅读(119) 评论(0) 推荐(0) 编辑
摘要: learning express route function 阅读全文
posted @ 2019-06-12 16:28 嵌入式实操 阅读(92) 评论(0) 推荐(0) 编辑
摘要: use static resourceL: result : 阅读全文
posted @ 2019-06-12 16:03 嵌入式实操 阅读(88) 评论(0) 推荐(0) 编辑
摘要: install express-generator create express application running application: result: 阅读全文
posted @ 2019-06-12 15:31 嵌入式实操 阅读(119) 评论(0) 推荐(0) 编辑
摘要: first : create new project then install express package : npm install express --savenpm WARN saveError ENOENT: no such file or directory, open 'C:\Use 阅读全文
posted @ 2019-06-12 15:23 嵌入式实操 阅读(127) 评论(0) 推荐(0) 编辑