DOM Enlightenment (Paperback)

Cody Lindley

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

商品描述

With DOM Enlightenment, you’ll learn how to manipulate HTML more efficiently by scripting the Document Object Model (DOM) without a DOM library. Using code examples in cookbook style, author Cody Lindley (jQuery Cookbook) walks you through modern DOM concepts to demonstrate how various node objects work.

Over the past decade, developers have buried the DOM under frameworks that simplify its use. This book brings these tools back into focus, using concepts and code native to modern browsers. You’ll understand the role jQuery plays in DOM scripting, and learn how to use the DOM directly in applications for mobile devices and specific browsers that require low overhead.

  • Understand JavaScript node objects and their relationship to the DOM
  • Learn the properties and methods of document, element, text, and DocumentFragment objects
  • Delve into element node selecting, geometry, and inline styles
  • Add CSS style sheets to an HTML document and use CSSStyleRule objects
  • Set up DOM events by using different code patterns
  • Learn the author’s vision for dom.js, a jQuery-inspired DOM Library for modern browsers

商品描述(中文翻譯)

《DOM Enlightenment》這本書將教導您如何在不使用DOM庫的情況下更有效地操作HTML,通過腳本化文檔對象模型(DOM)。作者Cody Lindley(《jQuery Cookbook》的作者)通過示例代碼以食譜風格引導您了解現代DOM概念,以展示各種節點對象的工作方式。

在過去的十年中,開發人員將DOM埋藏在簡化其使用的框架下。這本書將這些工具重新聚焦,使用與現代瀏覽器兼容的概念和代碼。您將了解jQuery在DOM腳本化中的作用,並學習如何在需要低開銷的移動設備和特定瀏覽器中直接使用DOM。

本書內容包括:
- 了解JavaScript節點對象及其與DOM的關係
- 學習文檔、元素、文本和DocumentFragment對象的屬性和方法
- 深入研究元素節點的選擇、幾何和內聯樣式
- 向HTML文檔添加CSS樣式表並使用CSSStyleRule對象
- 通過使用不同的代碼模式設置DOM事件
- 了解作者對dom.js的願景,這是一個受jQuery啟發的現代瀏覽器DOM庫