JavaScript权威指南(第五版)(影印版)
JavaScript权威指南(第五版)(影印版)
David Flanagan
出版时间:2007年06月
页数:1020
本书第五版已经经过全面的修订和扩展,涵盖了构建当今Web2.0应用程序所需的JavaScript技术。本书不仅是一本实例驱动的程序员指南,同时也是一本可以摆在桌边随时查阅的参考手册,它以全新的章节阐述了有效使用JavaScript脚本所需要知道的一切知识,包括:
*脚本化的HTTP和Ajax
*XML处理
*使用<canvas>标记的客户端图形
*JavaScript的命名空间——编写复杂程序时所必不可少的
*嵌入到Java应用程序中的类、闭包、持久层、Flash和JavaScript
第一部分详细阐述了JavaScript语言的核心内容。如果你是JavaScript新手,它将教授你这门语言;如果你已经是一个JavaScript程序员,第一部分将能磨练你的技艺并加深你对这门语言的理解。
第二部分阐述了在特定浏览器提供的脚本环境下,如何使用JavaScript进行DOM编程。同时运用许多精巧的实例,广泛且深入地阐明了JavaScript如何应用于客户端程序:
*为HTML文档生成表格内容
*展示DHTML的活力
*自动化表单验证
*绘制动态饼状统计图
*创建可拖曳的HTML元素
*为Web应用程序定义键盘快捷键
*创建有Ajax特性的工具提示
*在Ajax应用中使用XPath和XSLT加载XML文档对象
*以及更多
第三部分是JavaScript语言核心的全面参考。讲述了在JavaScript 1.5和ECMAScript version 3中定义的每一个类、对象、构造器、方法、函数、属性和常量。
第四部分是关于客户端JavaScript的详细参考,涵盖了遗留的Web浏览器API、标准DOM2 API以及新兴的标准,例如XMLHttpRequest对象和<canvas>标记。
本书已经成为全球超过300000名的JavaScript程序员构建JavaScript应用程序不可或缺的参考书籍。

“一本JavaScript专业程序员必备的参考书籍……组织良好,叙述详尽。”
——Brendan Eich, JavaScript的设计者
  1. Preface
  2. 1. Introduction to JavaScript
  3. 1.1 What Is JavaScript?
  4. 1.2 Versions of JavaScript
  5. 1.3 Client-Side JavaScript
  6. 1.4 JavaScript in Other Contexts
  7. 1.5 Exploring JavaScript
  8. Part I. Core JavaScript
  9. 2. Lexical Structure
  10. 2.1 Character Set
  11. 2.2 Case Sensitivity
  12. 2.3 Whitespace and Line Breaks
  13. 2.4 Optional Semicolons
  14. 2.5 Comments
  15. 2.6 Literals
  16. 2.7 Identifiers
  17. 2.8 Reserved Words
  18. 3. Datatypes and Values
  19. 3.1 Numbers
  20. 3.2 Strings
  21. 3.3 Boolean Values
  22. 3.4 Functions
  23. 3.5 Objects
  24. 3.6 Arrays
  25. 3.7 null
  26. 3.8 undefined
  27. 3.9The Date Object
  28. 3.10 Regular Expressions
  29. 3.11 Error Objects
  30. 3.12 Type Conversion Summary
  31. 3.13 Primitive Datatype Wrapper Objects
  32. 3.14 Object-to-Primitive Conversion
  33. 3.15 By Value Versus by Reference
  34. 4. Variables
  35. 4.1 Variable Typing
  36. 4.2 Variable Declaration
  37. 4.3 Variable Scope
  38. 4.4 Primitive Types and Reference Types
  39. 4.5 Garbage Collection
  40. 4.6 Variables as Properties
  41. 4.7 Variable Scope Revisited
  42. 5. Expressions and Operators
  43. 5.1 Expressions
  44. 5.2 Operator Overview
  45. 5.3 Arithmetic Operators
  46. 5.4 Equality Operators
  47. 5.5 Relational Operators
  48. 5.6 String Operators
  49. 5.7 Logical Operators
  50. 5.8 Bitwise Operators
  51. 5.9Assignment Operators
  52. 5.10 Miscellaneous Operators
  53. 6. Statements
  54. 6.1 Expression Statements
  55. 6.2 Compound Statements
  56. 6.3 if
  57. 6.4 else if
  58. 6.5 switch
  59. 6.6 while
  60. 6.7 do/while
  61. 6.8 for
  62. 6.9for/in
  63. 6.10 Labels
  64. 6.11 break
  65. 6.12 continue
  66. 6.13 var
  67. 6.14 function
  68. 6.15 return
  69. 6.16 throw
  70. 6.17 try/catch/finally
  71. 6.18 with
  72. 6.19The Empty Statement
  73. 6.20 Summary of JavaScript Statements
  74. 7. Objects and Arrays
  75. 7.1 Creating Objects
  76. 7.2 Object Properties
  77. 7.3 Objects as Associative Arrays
  78. 7.4 Universal Object Properties and Methods
  79. 7.5 Arrays
  80. 7.6 Reading and Writing Array Elements
  81. 7.7 Array Methods
  82. 7.8 Array-Like Objects
  83. 8. Functions
  84. 8.1 Defining and Invoking Functions
  85. 8.2 Function Arguments
  86. 8.3 Functions as Data
  87. 8.4 Functions as Methods
  88. 8.5 Constructor Functions
  89. 8.6 Function Properties and Methods
  90. 8.7 Utility Function Examples
  91. 8.8 Function Scope and Closures
  92. 8.9The Function( ) Constructor
  93. 9. Classes, Constructors, and Prototypes
  94. 9.1 Constructors
  95. 9.2 Prototypes and Inheritance
  96. 9.3 Simulating Classes in JavaScript
  97. 9.4 Common Object Methods
  98. 9.5 Superclasses and Subclasses
  99. 9.6 Extending Without Inheriting
  100. 9.7 Determining Object Type
  101. 9.8 Example: A defineClass( ) Utility Method
  102. 10. Modules and Namespaces
  103. 10.1 Creating Modules and Namespaces
  104. 10.2 Importing Symbols from Namespaces
  105. 10.3 Module Utilities
  106. 11. Pattern Matching with Regular Expressions
  107. 11.1 Defining Regular Expressions
  108. 11.2 String Methods for Pattern Matching
  109. 11.3 The RegExp Object
  110. 12. Scripting Java
  111. 12.1 Embedding JavaScript
  112. 12.2 Scripting Java
  113. Part II. Client-Side JavaScript
  114. 13. JavaScript in Web Browsers
  115. 13.1 The Web Browser Environment
  116. 13.2 Embedding Scripts in HTML
  117. 13.3 Event Handlers in HTML
  118. 13.4 JavaScript in URLs
  119. 13.5 Execution of JavaScript Programs
  120. 13.6 Client-Side Compatibility
  121. 13.7 Accessibility
  122. 13.8 JavaScript Security
  123. 13.9Other Web-Related JavaScript Embeddings
  124. 14. Scripting Browser Windows
  125. 14.1 Timers
  126. 14.2 Browser Location and History
  127. 14.3 Obtaining Window, Screen, and Browser Information
  128. 14.4 Opening and Manipulating Windows
  129. 14.5 Simple Dialog Boxes
  130. 14.6 Scripting the Status Line
  131. 14.7 Error Handling
  132. 14.8 Multiple Windows and Frames
  133. 14.9Example: A Navigation Bar in a Frame
  134. 15. Scripting Documents
  135. 15.1 Dynamic Document Content
  136. 15.2 Document Properties
  137. 15.3 Legacy DOM: Document Object Collections
  138. 15.4 Overview of the W3C DOM
  139. 15.5 Traversing a Document
  140. 15.6 Finding Elements in a Document
  141. 15.7 Modifying a Document
  142. 15.8 Adding Content to a Document
  143. 15.9Example: A Dynamically Created Table of Contents
  144. 15.10 Querying Selected Text
  145. 15.11 The IE 4 DOM
  146. 16. Cascading Style Sheets and Dynamic HTML
  147. 16.1 Overview of CSS
  148. 16.2 CSS for DHTML
  149. 16.3 Scripting Inline Styles
  150. 16.4 Scripting Computed Styles
  151. 16.5 Scripting CSS Classes
  152. 16.6 Scripting Stylesheets
  153. 17. Events and Event Handling
  154. 17.1 Basic Event Handling
  155. 17.2 Advanced Event Handling with DOM Level 2
  156. 17.3 The Internet Explorer Event Model
  157. 17.4 Mouse Events
  158. 17.5 Key Events
  159. 17.6 The onload Event
  160. 17.7 Synthetic Events
  161. 18. Forms and Form Elements
  162. 18.1 The Form Object
  163. 18.2 Defining Form Elements
  164. 18.3 Scripting Form Elements
  165. 18.4 Form Verification Example
  166. 19. Cookies and Client-Side Persistence
  167. 19.1 An Overview of Cookies
  168. 19.2 Storing Cookies
  169. 19.3 Reading Cookies
  170. 19.4 Cookie Example
  171. 19.5 Cookie Alternatives
  172. 19.6 Persistent Data and Security
  173. 20. Scripting HTTP
  174. 20.1 Using XMLHttpRequest
  175. 20.2 XMLHttpRequest Examples and Utilities
  176. 20.3 Ajax and Dynamic Scripting
  177. 20.4 Scripting HTTP with <script> Tags
  178. 21. JavaScript and XML
  179. 21.1 Obtaining XML Documents
  180. 21.2 Manipulating XML with the DOM API
  181. 21.3 Transforming XML with XSLT
  182. 21.4 Querying XML with XPath
  183. 21.5 Serializing XML
  184. 21.6 Expanding HTML Templates with XML Data
  185. 21.7 XML and Web Services
  186. 21.8 E4X: ECMAScript for XML
  187. 22. Scripted Client-Side Graphics
  188. 22.1 Scripting Images
  189. 22.2 Graphics with CSS
  190. 22.3 SVG: Scalable Vector Graphics
  191. 22.4 VML: Vector Markup Language
  192. 22.5 Graphics in a <canvas>
  193. 22.6 Graphics with Flash
  194. 22.7 Graphics with Java
  195. 23. Scripting Java Applets and Flash Movies
  196. 23.1 Scripting Applets
  197. 23.2 Scripting the Java Plug-in
  198. 23.3 Scripting with Java
  199. 23.4 Scripting Flash
  200. 23.5 Scripting Flash 8
  201. Part III. Core JavaScript Reference
  202. Core JavaScript Reference
  203. Part IV. Client-Side JavaScript Reference
  204. Client-Side JavaScript Reference
  205. Index
书名:JavaScript权威指南(第五版)(影印版)
作者:David Flanagan
国内出版社:东南大学出版社
出版时间:2007年06月
页数:1020
书号:978-7-5641-0768-0
原版书出版商:O'Reilly Media
David Flanagan
 
David Flanagan是Mozilla的软件工程师,为O'Reilly撰写了若干 著作,包括《JavaScript权威指南》《Ruby编程语言》,以及本版的先前版本。

David Flanagan是一名程序员,也是一名作家,它的个人网站是http://davidflanagan.com。他在O’Reilly出版的其他畅销书还包括《JavaScript Pocket Reference》、《The Ruby Programming Language》以及《Java in a Nutshell》。David毕业于麻省理工学院,获得计算机科学与工程学位。他和妻子和孩子一起生活在西雅图和温哥华之间的美国太平洋西北海岸。
 
 
The animal on the cover of JavaScript: The Definitive Guide, Fifth Edition, is a Javan
rhinoceros. All five species of rhinoceros are distinguished by their large size, thick
armor-like skin, three-toed feet, and single or double snout horn. The Javan rhinoceros,
along with the Sumatran rhinoceros, is one of two forest-dwelling species. The
Javan rhinoceros is similar in appearance to the Indian rhinoceros, but smaller and
with certain distinguishing characteristics (primarily skin texture).
Rhinoceroses are often depicted standing up to their snouts in water or mud. In fact,
they can frequently be found just like that. When not resting in a river, rhinos will
dig deep pits in which to wallow. Both of these resting places provide a couple of
advantages. First, they give the animal relief from the tropical heat and protection
from blood-sucking flies. (The mud that the wallow leaves on the skin of the rhinoceros
provides some protection from flies, also.) Second, mud wallows and river water
help support the considerable weight of these huge animals, thereby relieving the
strain on their legs and backs.
Folklore has long held that the horn of the rhinoceros possesses magical and aphrodisiacal
powers, and that humans who gain possession of the horns will gain those
powers, also. This is one of the reasons why rhinos are a prime target of poachers.
All species of rhinoceros are in danger, and the Javan rhino population is the most
precarious. Fewer than 100 of these animals are still living. At one time, Javan rhinos
could be found throughout southeastern Asia, but they are now believed to exist
only in Indonesia and Vietnam.
购买选项
定价:108.00元
书号:978-7-5641-0768-0
出版社:东南大学出版社