1. Trang chủ
  2. » Giáo án - Bài giảng

oreilly javascript cookbook

554 793 1

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 554
Dung lượng 6,68 MB

Nội dung

[...]... Table of Contents | xi Preface I wrote my first book on JavaScript 15 years ago, and had to scramble just to find enough material to fill a book With the JavaScript Cookbook, I had to choose among hundreds of uses to determine what to include After all these years of watching JavaScript grow, I am still surprised at how far-reaching the use of JavaScript has become In my opinion, there is no more useful... desktop file directly in client-side JavaScript It’s not a complete encyclopedia of JavaScript use today—no one book can cover all there is to cover But hopefully, you’ll come away with an appreciation of all you can do with JavaScript Bon appetit! Audience, Assumptions, and Approach Readers of this book should have some exposure to web development, and the use of JavaScript In addition, the recipe format... first focuses on existing JavaScript functionality and objects; the second focuses more on JavaScript used within environments, such as a browser If you’re relatively new to JavaScript, I recommend working through all of the recipes in the first 10 chapters before tackling the recipes later in the book Following is a chapter breakdown of the book: Chapter 1, Working with JavaScript Strings Covers some... ECMAScript 5, the tools, the APIs, the libraries, the browsers, and all the other fun stuff that helps make JavaScript development as exciting today as it was 15 years ago xxii | Preface CHAPTER 1 Working with JavaScript Strings 1.0 Introduction JavaScript strings are the most important component of JavaScript, probably used more than any other data type Though you may get numeric values from web page... as well as forming the basic serialization format of every JavaScript object One of the methods that all JavaScript objects share is toString, which returns a string containing the serialized format of the object A String Primitive A JavaScript string can be both a primitive data type or an object As a primitive type, it joins with four other JavaScript primitive types: number, Boolean (true or false),...15.12 Controlling Video from JavaScript with the video Element 353 16 JavaScript Objects 359 16.1 16.2 16.3 16.4 16.5 16.6 16.7 16.8 16.9 16.10 16.11 16.12 16.13 Defining a Basic JavaScript Object Keeping Object Members Private Expanding Objects with prototype Adding Getter/Setter... I do know how to make JavaScript work with the canvas element and SVG In this chapter, I provide the basic steps needed in order to work with both of these media, as well as the newer WebGL 3D environment, and the new HTML5 video and audio elements Chapter 16, JavaScript Objects Probably one of the most important chapters in the book, this chapter covers the basics of creating JavaScript objects, including... object protection functionality, chaining object methods, and using the new Prototype.bind xviii | Preface Chapter 17, JavaScript Libraries All of the book focuses on creating your own JavaScript objects and applications This chapter introduces us to jQuery, one of the more popular JavaScript framework libraries It covers common library tasks such as how to package your code into libraries, how to test... SQL databases Chapter 21, JavaScript Outside the Box This chapter briefly gets into all the various ways that JavaScript can be used now, none of which have anything to do with traditional web page development Included are discussions on creating mobile and desktop widgets, mobile device application development, creating add-ons and extensions for browsers, as well as how JavaScript can be used with... attribution An attribution usually includes the title, author, publisher, and ISBN For example: JavaScript Cookbook, by Shelley Powers Copyright 2010 Shelley Powers, 9780596806132.” If you feel your use of code examples falls outside fair use or the permission given here, feel free to contact us at permissions @oreilly. com xx | Preface How to Contact Us Please address comments and questions concerning this . class="bi x0 y0 w0 h1" alt="" JavaScript Cookbook JavaScript Cookbook Shelley Powers Beijing • Cambridge • Farnham • Köln • Sebastopol • Taipei • Tokyo JavaScript Cookbook by Shelley Powers Copyright. Contents | xi Preface I wrote my first book on JavaScript 15 years ago, and had to scramble just to find enough material to fill a book. With the JavaScript Cookbook, I had to choose among hundreds of. with JavaScript and wish to try out new techniques, or increase their grasp of both fundamentals and advanced features of JavaScript. Along the way, I’ll demonstrate how to: • Work with the JavaScript

Ngày đăng: 28/04/2014, 16:59

TỪ KHÓA LIÊN QUAN