摘要: 可以看出res.end方法需要设置响应头,而res.send则不用 对应地res.sendfile及res.end(html) 阅读全文
posted @ 2017-03-27 14:39 judy201654321 阅读(175) 评论(0) 推荐(0) 编辑
摘要: ``` var express=require('express') var fs=require('fs') var path=require('path') var app=express() app.use(express.static(path.join(__dirname,'public'))) // app.get('/',(req,res)=>{ // res.writeHead(... 阅读全文
posted @ 2017-03-27 11:57 judy201654321 阅读(100) 评论(0) 推荐(0) 编辑
摘要: "rewrite" "参考1" 阅读全文
posted @ 2017-03-27 10:28 judy201654321 阅读(155) 评论(0) 推荐(0) 编辑
摘要: "参考" 静态网页 阅读全文
posted @ 2017-03-27 09:46 judy201654321 阅读(221) 评论(0) 推荐(0) 编辑
摘要: Cannot GET / express 未设置路由 semi 缺少分号 indent 缩进问题 con't resolve 没找到,可能是路径问题或者根本不存在 阅读全文
posted @ 2017-03-27 07:32 judy201654321 阅读(94) 评论(0) 推荐(0) 编辑
摘要: "fs.readdirSync" 该方法将返回一个包含“指定目录下所有文件名称”的数组对象。 arr.forEach 遍历数组 forEach只能遍历数组,原数组是不会变的,要创建新数组,就得用arr.map,通过下面的例子可知map 方法好像是万能的 isDirectory()方法的使用,返回tr 阅读全文
posted @ 2017-03-27 06:03 judy201654321 阅读(2833) 评论(0) 推荐(0) 编辑
摘要: ``` < 会被编译成: ← 会被编译成: 阅读全文
posted @ 2017-03-27 05:08 judy201654321 阅读(114) 评论(0) 推荐(0) 编辑
摘要: ``` //counter.vue Clicked: {{ $store.state.count }} times, count is {{ evenOrOdd }}. + - Increment if odd Increment async ``` ``` //app.js import 'babel-polyfill' import ... 阅读全文
posted @ 2017-03-27 03:23 judy201654321 阅读(167) 评论(0) 推荐(0) 编辑