JavaScript for Absolute Beginners (Paperback)
暫譯: 絕對初學者的 JavaScript (平裝本)

Terry McNavage

  • 出版商: Apress
  • 出版日期: 2010-12-29
  • 售價: $1,590
  • 貴賓價: 9.8$1,558
  • 語言: 英文
  • 頁數: 504
  • 裝訂: Paperback
  • ISBN: 1430272198
  • ISBN-13: 9781430272199
  • 相關分類: JavaScript
  • 無法訂購

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

相關主題

商品描述

If you are new to both JavaScript and programming, this hands-on book is for you. Rather than staring blankly at gobbledygook, you'll explore JavaScript by entering and running hundreds of code samples in Firebug, a free JavaScript debugger. Then in the last two chapters, you'll leave the safety of Firebug and hand-code an uber cool JavaScript application in your preferred text editor.

Written in a friendly, engaging narrative style, this innovative JavaScript tutorial covers the following essentials:

  • Core JavaScript syntax, such as value types, operators, expressions, and statements provided by ECMAScript.
  • Features for manipulating XHTML, CSS, and events provided by DOM.
  • Object-oriented JavaScript, including prototypal and classical inheritance, deep copy, and mixins.
  • Closure, lazy loading, advance conditional loading, chaining, currying, memoization, modules, callbacks, recursion, and other powerful function techniques.
  • Encoding data with JSON or XML.
  • Remote scripting with JSON-P or XMLHttpRequest
  • Drag-and-drop, animated scrollers, skin swappers, and other cool behaviors.
  • Optimizations to ensure your scripts run snappy.
  • Formatting and naming conventions to prevent you from looking like a greenhorn.
  • New ECMAScript 5, DOM 3, and HTML 5 features such as Object.create(), Function.prototype.bind(), strict mode, querySelector(), querySelectorAll(), and getElementsByClassName().

As you can see, due to its fresh approach, this book is by no means watered down. Therefore, over the course of your journey, you will go from JavaScript beginner to wizard, acquiring the skills recruiters desire.

What you’ll learn

Who this book is for

This book is aimed at anybody who wants to learn how to use JavaScript to create more interactive and stickier web sites.

Table of Contents

  1. Representing Data with Values
  2. Type Conversion
  3. Operators
  4. Controlling Flow
  5. Member Inheritance
  6. Functions and Arrays
  7. Traversing and Modifying the DOM Tree
  8. Scripting CSS
  9. Listening for Events
  10. Scripting BOM

商品描述(中文翻譯)

如果您對 JavaScript 和程式設計都是新手,這本實作導向的書籍非常適合您。您將不再無神地盯著難以理解的內容,而是透過在 Firebug 這個免費的 JavaScript 除錯工具中輸入和執行數百個程式碼範例來探索 JavaScript。然後在最後兩章中,您將離開 Firebug 的安全環境,並在您喜愛的文本編輯器中手動編寫一個超酷的 JavaScript 應用程式。

這本創新的 JavaScript 教程以友好且引人入勝的敘述風格撰寫,涵蓋以下基本內容:
- 核心 JavaScript 語法,例如由 ECMAScript 提供的值類型、運算符、表達式和語句。
- 由 DOM 提供的操作 XHTML、CSS 和事件的功能。
- 物件導向的 JavaScript,包括原型繼承和傳統繼承、深拷貝和混合。
- 閉包、延遲加載、高級條件加載、鏈式調用、柯里化、記憶化、模組、回調、遞迴及其他強大的函數技術。
- 使用 JSON 或 XML 編碼數據。
- 使用 JSON-P 或 XMLHttpRequest 進行遠端腳本編寫。
- 拖放、動畫滾動條、皮膚切換器及其他酷炫行為。
- 優化以確保您的腳本運行流暢。
- 格式化和命名慣例,以防止您看起來像個菜鳥。
- 新的 ECMAScript 5、DOM 3 和 HTML 5 特性,例如 Object.create()、Function.prototype.bind()、嚴格模式、querySelector()、querySelectorAll() 和 getElementsByClassName()。

如您所見,這本書因其新穎的方式而絕不淺顯。因此,在您的學習旅程中,您將從 JavaScript 新手成長為高手,獲得招聘者所渴望的技能。

您將學到的內容

這本書適合誰

這本書針對任何想學習如何使用 JavaScript 創建更具互動性和吸引力的網站的人。

目錄
1. 用值表示數據
2. 類型轉換
3. 運算符
4. 控制流程
5. 成員繼承
6. 函數和數組
7. 遍歷和修改 DOM 樹
8. 腳本化 CSS
9. 監聽事件
10. 腳本化 BOM