附註:Includes bibliographical references and index.
Cover -- Contents at a Glance -- TOC36;Contents -- Introduction -- How This Book Is Organized -- Who Should Read This Book -- What This Book Assumes -- Conventions Used in This Book -- Whats on the Web Site63; -- WEEK 1 A Sound Foundation -- CH36;DAY 1 Getting the Basics Right -- Introducing JavaScript -- JavaScript in Context -- Selecting the Right Technology -- JavaScript44; Jscript44; and ECMAScript -- Lets Get Started -- Data Types -- Some Useful Tools -- Summary -- Workshop -- CH36;DAY 2 Working with Data -- Simple Data Storage -- Operators -- JavaScript Operators -- Summary -- Workshop -- CH36;DAY 3 Functions and Statements -- User Defined Functions -- Predefined Global Functions -- What Is a Statement63; -- Control Statements -- Loop Statements -- Summary -- Workshop -- CH36;DAY 4 JavaScript Is Object45;Based -- Understanding Objects -- Client45;Side JavaScript Objects -- The document Object -- Environment Objects -- Core JavaScript Objects -- Exploring an Object -- Summary -- Workshop -- CH36;DAY 5 An Introduction to Arrays -- What Is an Array63; -- Creating an Array -- Accessing Arrays -- Array Properties -- Array Methods -- Associative Arrays -- Storing Objects in Array Elements -- Summary -- Workshop -- CH36;DAY 6 HTML Forms and the String Object -- Collecting Data from HTML Forms -- Form Elements -- The String Object -- Checking User Input -- Summary -- Workshop -- CH36;DAY 7 Numbers and Math -- The Number Object -- The Math Object -- Predefined Properties -- Methods of the Math Object -- Creating Your Own Math Functions -- Summary -- Workshop -- WEEK 2 Lets Take It Further -- CH36;DAY 8 The Browser Issue -- Different Browsers44; Different JavaScript -- Cross45;Browser Compatible Scripting -- The W3C DOM -- Summary -- Workshop -- CH36;DAY 9 Date and Time Manipulation -- JavaScript and Dates -- The Date Object -- Date Formatting -- Time Formatting -- Converting Date and Time Formats -- Summary -- Workshop -- CH36;DAY 10 Events and Event Handling -- Und
摘要:The aim of Sams Teach Yourself JavaScript in 21 Days is to tutor the Web-literate novice JavaScripter through to a high level of competency in applying JavaScript to Web pages. In addition to core uses of client-side JavaScript, Sams Teach Yourself JavaScript in 21 Days also covers emerging topics such as the use of JavaScript with PDFs and the scripting of Scalable Vector Graphics (SVG). The key principles taught throughout the book are backed up with clear and useful examples. This enables the reader to easily apply what they've learned with confidence in order to meet their own coding needs.