Skip to Content
Node.js物聯網裝置開發
book

Node.js物聯網裝置開發

by Patrick Mulder, Kelsey Breseman
August 2017
Intermediate to advanced
272 pages
5h 32m
Chinese
GoTop Information, Inc.
Content preview from Node.js物聯網裝置開發
JavaScript 執行環境
|
15
網頁瀏覽器通常都內建整合式除錯器,可讓你設定中斷點,這麼做往往很不錯,可更
加了解底層到底發生了什麼事。關於瀏覽器執行 JavaScript 程式,將於第 10 章進一步
介紹。
伺服器
JavaScript 在伺服器端的基礎,於 2008 年開始,也就是當 Google 公司釋出開放原始碼
JavaScript 執行引擎 V8 時。V8 專案屬於 Google Chrome 瀏覽器的一部分。
一年後,Ryan Dahl 釋出 Node.js,為檔案系統和硬體驅動器添加了事件迴圈與低階的
JavaScript API。而且,因為藉助 V8 這套引擎,在世界上各種最為重要的運算平台上,
Node.js 皆能運行,從伺服器、平板、到智慧型手機,通通都可以。
Node.js 生態系統有一極為重要的部分,以 npm 為基礎,npm Node Package Manager
Node 套件管理員)的縮寫。Node.js 的套件可透過 npm 註冊中心發佈出去,現已包含
超過 10 萬個開源套件,供你下載、修改、用於自己的專案。
舉例而言,若需要開發 I2C 標籤
1
的程式庫,可到 npm 網站,在搜尋欄位鍵入「i2c」,
如圖 1-8 所示。
1-8 npmjs.com 網站的搜尋結果
1 I2C 是一種序列傳輸協定,詳情請見 NXP 規格書(
http://www.nxp.com/documents/user_manual/UM10204.
pdf
)。
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

金融人工智能:用Python实现AI量化交易

金融人工智能:用Python实现AI量化交易

Yves Hilpisch
快学熟用D3

快学熟用D3

Philipp K. Janert

Publisher Resources

ISBN: 9789864764594