没有合适的资源?快使用搜索试试~ 我知道了~
Programming JavaScript Applications - Eric Elliott
需积分: 10 9 下载量 167 浏览量
2018-01-15
16:30:50
上传
评论
收藏 8.56MB PDF 举报
温馨提示
试读
253页
Programming JavaScript Applications - Eric Elliott Programming JavaScript Applications - Eric Elliott Programming JavaScript Applications - Eric Elliott
资源推荐
资源详情
资源评论
Eric Elliott
Programming JavaScript
Applications
Programming JavaScript Applications
by Eric Elliott
Copyright © 2014 Eric Elliott. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions are
also available for most titles (http://my.safaribooksonline.com). For more information, contact our corporate/
institutional sales department: 800-998-9938 or corporate@oreilly.com.
Editors: Simon St. Laurent and Meghan Blanchette
Production Editor: Kara Ebrahim
Copyeditor: Eliahu Sussman
Proofreader: Amanda Kersey
Indexer: Lucie Haskins
Cover Designer: Randy Comer
Interior Designer: David Futato
Illustrator: Rebecca Demarest
July 2014:
First Edition
Revision History for the First Edition:
2014-06-25: First release
See http://oreilly.com/catalog/errata.csp?isbn=9781491950296 for release details.
Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of O’Reilly
Media, Inc. Programming JavaScript Applications, the image of an argali, and related trade dress are trade‐
marks of O’Reilly Media, Inc.
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as
trademarks. Where those designations appear in this book, and O’Reilly Media, Inc. was aware of a trademark
claim, the designations have been printed in caps or initial caps.
While every precaution has been taken in the preparation of this book, the publisher and author assume no
responsibility for errors or omissions, or for damages resulting from the use of the information contained
herein.
ISBN: 978-1-491-95029-6
[LSI]
Table of Contents
Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii
1.
The JavaScript Revolution. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Advantages of JavaScript 2
Performance 2
Objects 2
Syntax 3
First-Class Functions 3
Events 3
Reusability 4
The Net Result 4
Anatomy of a Typical Modern JavaScript App 4
Infrastructure 4
JSON: Data Storage and Communication 5
NoSQL Data Stores 6
RESTful JSON Web Services 6
2.
Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Minimize Side Effects 10
Function Definition 12
Named Function Expressions 14
Lambdas 16
Immediately Invoked Function Expressions 18
Method Context 20
Function Scope 22
Hoisting 22
Closures 25
Method Design 27
Named Parameters 28
iii
剩余252页未读,继续阅读
资源评论
huang_xianguo
- 粉丝: 0
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功