The Principles of Object-Oriented JavaScript (Paperback)

Nicholas C. Zakas

  • 出版商: No Starch Press
  • 出版日期: 2014-02-23
  • 定價: $875
  • 售價: 9.5$831
  • 語言: 英文
  • 頁數: 120
  • 裝訂: Paperback
  • ISBN: 1593275404
  • ISBN-13: 9781593275402
  • 相關分類: JavaScriptObject-oriented
  • 立即出貨 (庫存 < 4)

買這商品的人也買了...

商品描述

If you've used a more traditional object-oriented language, such as C++ or Java, JavaScript probably doesn't seem object-oriented at all. It has no concept of classes, and you don't even need to define any objects in order to write code. But don't be fooled—JavaScript is an incredibly powerful and expressive object-oriented language that puts many design decisions right into your hands.

In The Principles of Object-Oriented JavaScript, Nicholas C. Zakas thoroughly explores JavaScript's object-oriented nature, revealing the language's unique implementation of inheritance and other key characteristics. You'll learn:

  • The difference between primitive and reference values
  • What makes JavaScript functions so unique
  • The various ways to create objects
  • How to define your own constructors
  • How to work with and understand prototypes
  • Inheritance patterns for types and objects


The Principles of Object-Oriented JavaScript will leave even experienced developers with a deeper understanding of JavaScript. Unlock the secrets behind how objects work in JavaScript so you can write clearer, more flexible, and more efficient code.

商品描述(中文翻譯)

如果你曾經使用過更傳統的物件導向語言,例如C++或Java,JavaScript可能看起來根本不像是物件導向的語言。它沒有類別的概念,你甚至不需要定義任何物件就可以撰寫程式碼。但不要被騙了,JavaScript是一個非常強大且表達力豐富的物件導向語言,讓你可以直接掌握許多設計決策。

在《JavaScript物件導向原則》一書中,Nicholas C. Zakas徹底探索了JavaScript的物件導向特性,揭示了該語言對繼承和其他關鍵特性的獨特實現方式。你將學到:

- 原始值和參考值的差異
- JavaScript函式的獨特之處
- 創建物件的各種方式
- 如何定義自己的建構函式
- 如何使用和理解原型
- 類型和物件的繼承模式

《JavaScript物件導向原則》將讓即使是有經驗的開發人員對JavaScript有更深入的理解。揭開JavaScript中物件運作的秘密,讓你能夠撰寫更清晰、更靈活、更高效的程式碼。