- ホーム
- > 洋書
- > 英文書
- > Computer / Languages
Full Description
It's time for a current, definitive JavaScript book, and in this comprehensive beginner's guide, bestselling author Larry Ullman teaches the language as it is implemented today. Larry demonstrates how to build upon JavaScript's ease of use, while demystifying its often-cryptic syntax, especially for those who have not programmed before. This book enforces modern JavaScript's best practices and embraces key Web development approaches such as progressive enhancement and unobtrusive scripting. The author demonstrates loads of real-world code and makes it available for download.You'll learn about JavaScript itself and the relationship between JavaScript and HTML. Next you'll explore variables, common operators, and control structures. Then you'll create functions, handle events, and do more with HTML forms. You'll master Ajax, work with frameworks, and use JavaScript with PHP to create a complete example. The result is a book that helps you not just tinker with JavaScript but to thoroughly comprehend it.This book includes:Easy step-by-step instruction, ample illustrations, and clear examplesReal-world techniques to build your skillsInsight into best practices from a veteran Web expertEmphasis on strategies for creating reliable code that will work on all of today's browsers and devices, even those without JavaScript
Contents
IntroductionAbout This BookWhat You'll NeedAbout the AuthorGetting SupportPart 1: Getting StartedChapter 1: (Re-)Introducing JavaScriptWhat is JavaScript?JavaScript Versions and Browser SupportJavaScript Programming GoalsChapter 2: JavaScript in ActionChoosing a DOCTYPEIntroducing HTML5Embedding JavaScript in HTMLJavaScript ApproachesCobbling Together Some CodeA Framework ApproachSteal This JavaScriptChapter 3: Tools of the TradeThe Great Debate: Text Editors vs. IDEsThe Browser: Your Friend, Your EnemyExecuting JavaScriptDebugging FundamentalsOnline ResourcesPart 2: JavaScript FundamentalsChapter 4: Simple Variable TypesBasic Variable SyntaxCommon OperatorsWorking with NumbersWorking with StringsOther Simple TypesPerforming Type ConversionsGenerating Dates and TimesChapter 5: Using Control StructuresConditionalsWhat is true?Logical OperatorsComparison OperatorsPreventing BugsPerforming IterationsChapter 6: Complex Variable TypesWorking with ArraysWorking with ObjectsArrays as ObjectsComparing TypesChapter 7: Creating FunctionsDefining Your Own FunctionsPassing Values to FunctionsReturning Values from FunctionsUnderstanding Variable ScopeAnonymous FunctionsNested FunctionsFunctions Acting as ClassesFunction PrototypesNested FunctionsChapter 8: Event HandlingEvent PhasesBrowser EventsKeyboard EventsInput Device EventsAccessible EventsAssigning Event HandlersCreating an Event AssignerReferencing the EventPreventing Default Event BehaviorChapter 9: JavaScript and the BrowserDOM ManipulationJavaScript and CSSAlerts and PromptsThe WindowChapter 10: Working with FormsHandling Form SubmissionsForm ValidationUsing Regular ExpressionsHandling File UploadsChapter 11: AjaxUnderstanding AjaxProviding Dynamic ContentForm ValidationAjax Performance TipsWorking with Other DataChapter 12: Error ManagementSimple Debugging ErrorsHandling Problems GracefullyCreating Informative ErrorsCreating Useful ErrorsThrowing ExceptionsPart 3: Next StepsChapter 13: FrameworksChoosing a FrameworkIntroducing jQueryIntroducing ExtJSIntroducing YUIChapter 14: Advanced JavaScriptUnit TestingProfilingClosuresPrototypesNamespacesMinifyingChapter 15: Putting It All Together