JavaScript Pocket Reference: Activate Your Web Pages (Pocket Reference (O'Reilly))
معرفی کتاب «JavaScript Pocket Reference: Activate Your Web Pages (Pocket Reference (O'Reilly))» نوشتهٔ David Flanagan، منتشرشده توسط نشر O'Reilly Media در سال 2012. این کتاب در 20 صفحه، فرمت pdf، زبان انگلیسی ارائه شده است. «JavaScript Pocket Reference: Activate Your Web Pages (Pocket Reference (O'Reilly))» در دستهٔ بدون دستهبندی قرار دارد.
JavaScript is the ubiquitous programming language of the Web, and for more than 15 years, __ The Definitive Guide__ has been the bible of JavaScript programmers around the world. This book is an all-new excerpt of __The Definitive Guide__, collecting the essential parts of that hefty volume into this slim yet dense pocket reference. The first 9 chapters document the latest version (ECMAScript 5) of the core JavaScript language, covering: * Types, values, and variables * Operators, expressions, and statements * Objects and arrays * Functions and classes The next 5 chapters document the fundamental APIs for using JavaScript with HTML5 and explain how to: * Interact with web browser windows * Script HTML documents and document elements * Modify and apply CSS styles and classes * Respond to user input events * Communicate with web servers * Store data locally on the user's computer This book is a perfect companion to __jQuery Pocket Reference__. Table of Contents 5 Preface 9 Chapter 1. Lexical Structure 13 Comments 13 Identifiers and Reserved Words 14 Optional Semicolons 15 Chapter 2. Types, Values, and Variables 17 Numbers 18 Text 21 String Literals 21 Boolean Values 24 null and undefined 25 The Global Object 26 Type Conversions 27 Variable Declaration 31 Chapter 3. Expressions and Operators 35 Expressions 36 Initializers 36 Property Access 38 Function Definition 38 Invocation 39 Object Creation 40 Operators 40 Arithmetic Operators 44 Relational Operators 48 Logical Expressions 51 Assignment Expressions 54 Evaluation Expressions 55 Miscellaneous Operators 56 The Conditional Operator (?:) 57 The typeof Operator 57 The delete Operator 58 The void Operator 58 The Comma Operator (,) 58 Chapter 4. Statements 61 Expression Statements 63 Compound and Empty Statements 64 Declaration Statements 65 var 65 function 66 Conditionals 67 if 68 else if 68 switch 69 Loops 71 while 72 do/while 72 for 73 for/in 74 Jumps 76 Labeled Statements 76 break 77 continue 78 return 78 throw 79 try/catch/finally 80 Miscellaneous Statements 82 with 82 debugger 83 “use strict” 83 Chapter 5. Objects 87 Creating Objects 88 Object Literals 88 Creating Objects with new 88 Prototypes 89 Object.create() 90 Properties 91 Querying and Setting Properties 91 Property Inheritance 92 Deleting Properties 93 Testing Properties 93 Enumerating Properties 95 Serializing Properties and Objects 96 Property Getters and Setters 97 Property Attributes 99 Object Attributes 102 The prototype Attribute 102 The class Attribute 103 The extensible Attribute 103 Chapter 6. Arrays 105 Creating Arrays 106 Array Elements and Length 107 Iterating Arrays 108 Multidimensional Arrays 109 Array Methods 110 join() 110 reverse() 110 sort() 111 concat() 112 slice() 112 splice() 112 push() and pop() 113 unshift() and shift() 114 toString() 114 ECMAScript 5 Array Methods 115 forEach() 115 map() 116 filter() 116 every() and some() 116 reduce(), reduceRight() 117 indexOf() and lastIndexOf() 118 Array Type 119 Array-Like Objects 119 Strings as Arrays 120 Chapter 7. Functions 123 Defining Functions 124 Nested Functions 126 Invoking Functions 127 Function Invocation 127 Method Invocation 128 Constructor Invocation 130 Indirect Invocation 132 Function Arguments and Parameters 133 Optional Parameters 134 Variable-Length Argument Lists: The Arguments Object 134 Functions as Namespaces 136 Closures 137 Function Properties, Methods, and Constructor 141 The length Property 141 The prototype Property 142 The bind() Method 142 The toString() Method 143 The Function() Constructor 143 Chapter 8. Classes 145 Classes and Prototypes 146 Classes and Constructors 148 Constructors and Class Identity 150 The constructor Property 151 Java-Style Classes in JavaScript 153 Immutable Classes 155 Subclasses 156 Augmenting Classes 158 Chapter 9. Regular Expressions 161 Describing Patterns with Regular Expressions 161 Literal Characters 162 Character Classes 163 Repetition 164 Nongreedy repetition 165 Alternation, Grouping, and References 166 Specifying Match Position 168 Flags 169 Matching Patterns with Regular Expressions 170 String Methods for Pattern-Matching 170 RegExp Properties and Methods 172 Chapter 10. Client-Side JavaScript 175 Embedding JavaScript in HTML 175 Event-Driven Programming 177 The Window Object 177 Timers 178 Browser Location and Navigation 179 Browsing History 180 Browser and Screen Information 181 Dialog Boxes 183 Document Elements as Window Properties 184 Multiple Windows and Frames 184 Relationships Between Frames 185 JavaScript in Interacting Windows 187 The Same-Origin Policy 188 Chapter 11. Scripting Documents 191 Overview of the DOM 191 Selecting Document Elements 194 Selecting Elements by ID 194 Selecting Elements by Name 195 Selecting Elements by Type 196 Selecting Elements by CSS Class 198 Selecting Elements with CSS Selectors 199 Document Structure and Traversal 200 Attributes 202 Element Content 204 Element Content as HTML 205 Element Content as Plain Text 205 Element Content as Text Nodes 206 Creating, Inserting, and Deleting Nodes 207 Element Style 209 Geometry and Scrolling 213 Chapter 12. Handling Events 217 Types of Events 219 Form Events 219 Window Events 220 Mouse Events 221 Key Events 222 HTML5 Events 223 Touchscreen and Mobile Events 226 Registering Event Handlers 227 Setting Event Handler Properties 227 Setting Event Handler Attributes 228 addEventListener() 229 Event Handler Invocation 230 Event Handler Argument 231 Event Handler Context 231 Event Handler Scope 231 Handler Return Value 232 Event Propagation 233 Event Cancellation 234 Chapter 13. Networking 237 Using XMLHttpRequest 237 Specifying the Request 239 Retrieving the Response 241 HTTP Progress Events 243 Cross-Origin HTTP Requests 244 HTTP by : JSONP 245 Server-Sent Events 248 WebSockets 249 Chapter 14. Client-Side Storage 251 localStorage and sessionStorage 252 Storage Lifetime and Scope 253 Storage API 255 Storage Events 256 Cookies 257 Cookie Attributes: Lifetime and Scope 258 Setting Cookies 260 Reading Cookies 261 Cookie Limitations 262 Index 263 JavaScript is the ubiquitous programming language of the Web, and for more than 15 years, The Definitive Guide has been the bible of JavaScript programmers around the world. Ideal for JavaScript developers at any level, this book is an all-new excerpt of The Definitive Guide, collecting the essential parts of that hefty volume into this slim yet dense pocket reference.The first 9 chapters document the latest version (ECMAScript 5) of the core JavaScript language, covering:Types, values, and variablesOperators, expressions, and statementsObjects and arraysFunctions and classesThe next 5 chapters document the fundamental APIs for using JavaScript with HTML5 and explain how to:Interact with web browser windowsScript HTML documents and document elementsModify and apply CSS styles and classesRespond to user input eventsCommunicate with web serversStore data locally on the user's computerThis book is a perfect companion to jQuery Pocket Reference. "JavaScript is the ubiquitous programming language of the Web, and for more than 15 years, The Definitive Guide has been the bible of JavaScript programmers around the world. Ideal for JavaScript developers at any level, this book is an all-new excerpt of The Definitive Guide, collecting the essential parts of that hefty volume into this slim yet dense pocket reference. The first 9 chapters document the latest version (ECMAScript 5) of the core JavaScript language ... The next 5 chapters document the fundamental APIs for using JavaScript with HTML5 and explain how to interact with web browser windows ; script HTML documents and document elements ;modify and apply CSS styles and classes ; respond to user input events ; communicate with web servers (and) store data locally on the user's computer." Amazon.com viewed 5/7/2020 Although JavaScript has become the programming language of the Web, it's a little different from the expectations of other languages. This convenient pocket reference gives you immediate answers to pressing questions as you encounter them. This is a duplicate. Please update your lists. See https://openlibrary.org/works/OL1643767W.
دانلود کتاب JavaScript Pocket Reference: Activate Your Web Pages (Pocket Reference (O'Reilly))