Github有很多開源電子書, 既然是開源的, 那就可以下載下傳到本地通路, 這裡以阮一峰老師的 《ECMAScript 6入門》 為例, 示範開源電子書的下載下傳, 以及本地開啟http服務檢視開源電子書
擁有12000顆星的中文開源電子書 https://github.com/ruanyf/es6tutorial/
第一步: 從Github下載下傳最新開源電子書資源(depth=1表示隻下載下傳最新的版本)
git clone https://github.com/ruanyf/es6tutorial.git --depth=1
git clone
第二步: 使用npm全局安裝http服務
sudo npm install --global http-server
在目前檔案夾開啟http方式或
hs --o
http-server --o
第三步:進入下載下傳電子書檔案夾, 開啟http服務
cd es6tutorial
hs --o
es6
福利:開源電子書的 資源集合 , 拿去學習吧!
https://github.com/EbookFoundation/free-programming-books/blob/master/free-programming-books-zh.md#%E7%9B%AE%E5%BD%95