上一页 1 2 3 4 5 6 7 8 9 ··· 22 下一页
摘要: ejs语法案例 阅读全文
posted @ 2019-11-01 17:19 LIULIULIU666 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 模板引擎: jade -破坏式、侵入式,强依赖;用了之后不能随便用别的引擎 ejs - 温和、非侵入时、弱依赖 jade使用 ejs使用 jade语法: 自动识别单标签 阅读全文
posted @ 2019-11-01 17:14 LIULIULIU666 阅读(248) 评论(0) 推荐(0) 编辑
摘要: express和body-parser GET请求无需中间件 req.query POST请求需要中间件body-parser 链式操作next 阅读全文
posted @ 2019-11-01 14:36 LIULIULIU666 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 系统模块:http://nodejs.cn/api/events.html 自定义模块: require 请求:引入模块 module 模块:批量输出 exports 输出:单独输出 express基础应用 // 下载express cnpm install express const expres 阅读全文
posted @ 2019-11-01 11:26 LIULIULIU666 阅读(322) 评论(0) 推荐(0) 编辑
摘要: res.writeHead(200, {'Content-Type': 'text/html; charset=utf-8'});//只需要设置响应头的编码格式就好,解决中文乱码问题 阅读全文
posted @ 2019-09-25 17:16 LIULIULIU666 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 案例:post和get 阅读全文
posted @ 2019-09-25 16:38 LIULIULIU666 阅读(780) 评论(0) 推荐(0) 编辑
摘要: 原生JS解析参数: querystring解析参数 url解析参数: 案例:最简单的解析方法 阅读全文
posted @ 2019-09-23 11:31 LIULIULIU666 阅读(463) 评论(0) 推荐(0) 编辑
摘要: 读文件: 写文件: 案例: 阅读全文
posted @ 2019-09-23 11:03 LIULIULIU666 阅读(246) 评论(0) 推荐(0) 编辑
摘要: http模块基础: 阅读全文
posted @ 2019-09-23 10:42 LIULIULIU666 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 正常组件间通信 父->子组件 是通过属性传递 子->父组件 是通过this.$emit()传递 this.$emit()返回的是this,如果需要一些值 可使用callback方式传递 provide 和 inject 这对选项需要一起使用,以允许一个祖先组件向其所有子孙后代注入一个依赖, 不论组件 阅读全文
posted @ 2019-09-05 18:34 LIULIULIU666 阅读(1702) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 22 下一页