随笔分类 -  express

learning express notes
摘要:learning express error handle code: result: 阅读全文
posted @ 2019-06-13 11:30 嵌入式实操 阅读(80) 评论(0) 推荐(0)
摘要:learning express error handle code: result: 阅读全文
posted @ 2019-06-13 11:23 嵌入式实操 阅读(97) 评论(0) 推荐(0)
摘要:learning express view engine function views/index.pug result: 阅读全文
posted @ 2019-06-13 11:14 嵌入式实操 阅读(77) 评论(0) 推荐(0)
摘要:learning express.Router() code: result: 阅读全文
posted @ 2019-06-13 10:55 嵌入式实操 阅读(108) 评论(0) 推荐(0)
摘要:when develop expree meet some errors, we show how to solve Error: No default engine was specified and no extension was provided. How to solve: app.set 阅读全文
posted @ 2019-06-13 10:23 嵌入式实操 阅读(199) 评论(0) 推荐(0)
摘要:router-level middleware works in the same way as application-level middleware, except it is bound to an instance of express.Router(). code: result: 阅读全文
posted @ 2019-06-13 10:20 嵌入式实操 阅读(98) 评论(0) 推荐(0)
摘要: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 嵌入式实操 阅读(91) 评论(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 嵌入式实操 阅读(88) 评论(0) 推荐(0)
摘要:code: use application middleware result: web result: pass id field 阅读全文
posted @ 2019-06-12 17:26 嵌入式实操 阅读(105) 评论(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 嵌入式实操 阅读(124) 评论(0) 推荐(0)
摘要:learning express route function 阅读全文
posted @ 2019-06-12 16:28 嵌入式实操 阅读(95) 评论(0) 推荐(0)
摘要:use static resourceL: result : 阅读全文
posted @ 2019-06-12 16:03 嵌入式实操 阅读(100) 评论(0) 推荐(0)
摘要:install express-generator create express application running application: result: 阅读全文
posted @ 2019-06-12 15:31 嵌入式实操 阅读(124) 评论(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 嵌入式实操 阅读(130) 评论(0) 推荐(0)