Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 1.035 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
1.035
Dung lượng
6,52 MB
Nội dung
[...]... Memory and Garbage Collection Data Types Primitive vs Reference Types Manipulating by Value vs Reference x 39 39 39 40 40 41 42 42 46 47 47 48 48 48 49 49 49 50 51 51 51 52 Contents Null and Undefined Determining Type Type Conversion Primitives vs Primitive Objects Summary Chapter 4: Expressions, Operators, and Statements JavaScript Expressions JavaScript Operators Types of Operators Comparison Operators... Appendix A: Core Javascript Language 649 Appendix B: JavaScript Global Objects 723 Appendix C: JavaScript Global Properties 895 Appendix D: JavaScript Global Functions 899 Appendix E: Reserved and Special Words 909 Appendix F: Document Object Reference 911 Appendix G: Resources on the Web 973 Index 975 xxiii Introduction Since its introduction by Netscape over fourteen years ago, JavaScript has become...Contents Introduction xxv Chapter 1: Introduction to JavaScript 1 JavaScript History Looking Ahead to ES5 and Harmony Stages of a JavaScript Developer Real-World JavaScript 1 2 3 4 In the Browser Server-Side JavaScript ActionScript and Flash Adobe Integrated Runtime (AIR) In Other Adobe Products Desktop Widgets Complementary Technologies... Document Object Model (DOM) When to Use JavaScript Major JavaScript Engines ECMAScript Support by Engine General Equivalence Performance in JavaScript Engines 4 5 7 7 7 7 7 8 8 9 10 11 12 14 15 15 Basic Development Tools 17 Choosing a Text Editor The Web Server The Test Browser 17 17 18 Your First JavaScript Application Breaking it Down Summary 19 20 21 Contents Chapter 2: JavaScript in the Browser 23 The... how exactly JavaScript fits into the browser runtime, how we include script on a page, and control the execution by way of browser events Chapter 3: JavaScript Basics explains the fundamental characteristics of JavaScript and how it compares to other programming languages at a low level Other topics covered here include variables, garbage collection, type conversion and objects Chapter 4: Expressions,... proprietary browser extensions (with examples) Appendix B: JavaScript Global Objects contains a complete reference for all of the global objects (with examples) including some proprietary browser objects Appendix C: JavaScript Global Properties describes all of the standard properties that are part of the global object (with examples) Appendix D: JavaScript Global Functions describes all of the standard... ISBN; this book’s ISBN is 978-0-470-34472-9 Once you download the code, just decompress it with your favorite compression tool Alternately, you can go to the main Wrox code download page at http://www .wrox. com/dynamic/books/download aspx to see the code available for this book and all other Wrox books Errata We make every effort to ensure that there are no errors in the text or in the code However, no... www .wrox. com/contact/techsupport shtml and complete the form there to send us the error you have found We’ll check the information and, if appropriate, post a message to the book’s errata page and fix the problem in subsequent editions of the book p2p .wrox. com For author and peer discussion, join the P2P forums at p2p .wrox. com The forums are a Web-based system for you to post messages relating to Wrox. .. way to build applications, but it’s thanks to JavaScript that we have such an interesting and powerful web This book will serve as a detailed reference for all things JavaScript This includes, of course, all the language basics but also virtually everything to do with its core objects, features, and limitations You’ll examine advanced topics too, such as how JavaScript can be applied to provide specific... and will explain both the history and current role of JavaScript amidst the cloud of competing browsers and interpreters Finally, I’ll introduce a simple web-based application using JavaScript and explain how it all fits together JavaScript Histor y Beginning its life as a decidedly curious enhancement to Netscape called Mocha (an homage to Java), JavaScript was intended for sparing use to add minor . 1: Introduction to JavaScript 1 JavaScript History 1 Looking Ahead to ES5 and Harmony 2 Stages of a JavaScript Developer 3 Real-World JavaScript 4 In the Browser 4 Server-Side JavaScript 5 ActionScript. PM6/25/09 8:19:20 PM JavaScript Programmer’s Reference Alexei White Wiley Publishing, Inc. ffirs.indd iiiffirs.indd iii 6/25/09 8:19:20 PM6/25/09 8:19:20 PM JavaScript Programmer’s Reference Published. 55 Primitives vs. Primitive Objects 58 Summary 59 Chapter 4: Expressions, Operators, and Statements 61 JavaScript Expressions 61 JavaScript Operators 62 Types of Operators 62 Comparison Operators