聚合专家的精品课程
+邀请左耳朵耗子、王争、杨晓峰、丁奇、winter + 等几十位顶级技术和行业专家,通过图文、音频、视频等方式,为你提供有干货、可实操、能借鉴的内容产品。
+
+
+
+ diff --git a/.gitignore b/.gitignore index 496ee2c..91dfed8 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -.DS_Store \ No newline at end of file +.DS_Store +node_modules \ No newline at end of file diff --git "a/chapter2/\347\254\254\344\272\214\347\253\240\357\274\232\346\212\200\346\234\257\351\242\204\347\240\224\347\257\207.pdf" "b/chapter2/\347\254\254\344\272\214\347\253\240\357\274\232\346\212\200\346\234\257\351\242\204\347\240\224\347\257\207.pdf" index 8adf0cb..47cdb76 100644 Binary files "a/chapter2/\347\254\254\344\272\214\347\253\240\357\274\232\346\212\200\346\234\257\351\242\204\347\240\224\347\257\207.pdf" and "b/chapter2/\347\254\254\344\272\214\347\253\240\357\274\232\346\212\200\346\234\257\351\242\204\347\240\224\347\257\207.pdf" differ diff --git a/chapter3/1.download/index.js b/chapter3/1.download/index.js new file mode 100644 index 0000000..1b66b95 --- /dev/null +++ b/chapter3/1.download/index.js @@ -0,0 +1,25 @@ +const koa = require('koa'); +const fs = require('fs'); +const mount = require('koa-mount'); +const static = require('koa-static'); + +const app = new koa(); + +// 使用static中间件提供静态文件服务 +// 以source/static目录为基准目录,所有访问该服务器并且路径是/static的请求都会在这个目录下找到静态文件 +// 并返回回去 +app.use( + mount('/static', static(__dirname + '/source/static/')) +); + +// 根目录直接读出静态文件页面返回。 +// 其实这个用static中间件也是能实现的。 +app.use( + mount('/', async (ctx) => { + ctx.body = fs.readFileSync(__dirname + '/source/index.htm', 'utf-8') + }) +); + + +// app.listen(4000); +module.exports = app; \ No newline at end of file diff --git a/chapter3/1.download/source/index.htm b/chapter3/1.download/source/index.htm new file mode 100644 index 0000000..e04a461 --- /dev/null +++ b/chapter3/1.download/source/index.htm @@ -0,0 +1,2203 @@ + + + + +
+ + + + + + + + + +
极客时间是由极客邦科技精心打造的一款面向 IT + 领域的知识服务产品,旨在通过好内容、好产品、好服务帮助用户轻松学习、高效学习。
+
邀请左耳朵耗子、王争、杨晓峰、丁奇、winter + 等几十位顶级技术和行业专家,通过图文、音频、视频等方式,为你提供有干货、可实操、能借鉴的内容产品。
+
+
+
+

+ 极客时间提供了留言、社群、直播等方式,为用户和专家建立了紧密的连接。用户可以与专家交流学习心得,探讨技术问题,获取成长的最佳路径。
++ 精心设计的文章排版,个性化的阅读风格,为你打造沉浸式学习体验。你可以使用划线、评论、收藏的功能进行深度学习,也可以在碎片时间听音频,看视频。 +
+
+
+
+

+ 你可以根据更新时间、订阅人数、价格、活动、热门标签等方式检索自己需要的课程和内容,还可以通过搜索服务直接搜索你需要的关键字,系统会从多个维度为你提供精准的搜索结果。 +
+音频播客卖桃者说,采用独家视角,深度解析行业趋势及对互联网和 IT + 技术的所思所想。24 小时不间断更新的 Readhub 和极客新闻模块,为你提供最新的行业资讯及热点信息。
+
+

Copyright © 2019, The Holding of GeekBang (Beijing) Co., Ltd. All rights
+ reserved. 极客邦控股(北京)有限公司 | 京 ICP 备 16027448号-3. 京公网安备 11010502037384号增值电信业务经营许可证
+
+
+
code\uff1a
vid:
uuid:
requestId:
"+_.get("Play_DateTime")+"\uff1a