没有合适的资源?快使用搜索试试~ 我知道了~
首页掌握Web组件开发:从jQuery到Polymer的实用指南
"《开发Web组件:从jQuery到Polymer》是一本由Jarrod Overson和Jason Strimpel合著的实用指南,专为IT行业的JavaScript开发者设计。随着Web组件技术在W3C新兴标准中的地位日益重要,这本书旨在帮助开发者理解和掌握这一前沿技术。尽管现代浏览器对Web组件的支持尚显不足,但其发展速度极快,这本著作将带你深入了解Web组件背后的理论,并指导你如何构建自定义、可重用的HTML5 Web组件。 无论开发者之前是否熟悉jQuery或Polymer等库,书中都将深入讲解这些库在DOM操作方面的原理。通过学习,你将学会使用纯JavaScript创建基础小部件,然后逐步将其转化为具备语义性、声明式、封装性、可消费性和可维护性的Web组件。这样的定制组件将助力Web平台实现作为原生可扩展应用平台的潜力。 书中特别关注了自定义元素和Shadow DOM的概念,这两个特性对于理解新的Web平台功能至关重要,它们能够帮助你构建更健壮的组件和应用程序。作者们的目标是让更多的开发者能够轻松地涉足Web组件的世界,从而引导他们走上组件化Web的道路。 著名工程师Addy Osmani对本书给予高度评价,认为它有助于巩固对新Web平台特性的理解,而Google的Developer Advocate Rob Dodson则表示对这本书充满期待,认为它对于新手开发者而言是宝贵的引导。《开发Web组件》不仅适合希望提升技能的专业人士,也是那些希望紧跟Web技术发展趋势的开发者的理想选择,帮助他们在快速变化的环境中保持竞争力。"
资源详情
资源推荐
![](https://csdnimg.cn/release/download_crawler_static/8564993/bg10.jpg)
If you are already familiar with these patterns or you would prefer to dive right into
the meat of web components, then start with Part III.
Part III, Building HTML5 Web Components
The third section provides an introduction to web components as defined by the
World Wide Web Consortium (W3C) and implemented by browsers. This section
takes the working example built in and and converts it into a fully functioning
web component.
Part IV, Testing, Building, and Deploying Components with Polymer
The fourth section covers how Google’s Polymer bridges the web component imple‐
mentation gaps in today’s browsers and provides convenient APIs for creating
extendable web components. It then guides you through converting your web compo‐
nent from Part III into a Polymer component. Finally, it shows how to package
and deploy the raw web component and the Polymerized version using different
package managers.
What This Book Isn’t
The intent of this book is not to be the definitive guide for developing web compo‐
nents across the entire spectrum of devices used to access the Internet. That would be
an impossible endeavor, for two key reasons.
First, the capabilities of the browser have increased significantly in recent years, and
the Internet has transformed from a document delivery mechanism into a quasi
application platform. This transformation has made the browser a much more robust
and feature-rich platform than I ever imagined possible back when I was using tables
to lay out pages and testing them in Netscape 4. There are now many new techniques
for achieving what would have been spectacular feats of JavaScript pixel pushing
using CSS alone. These native features continuously evolve, but are adopted at differ‐
ing rates by browser vendors. Implementation varies across browsers as well, because
browser vendors base their implementations on their own interpretations of the W3C
specifications. These features are very relevant to web component development, but
this brave new browser world is a book topic in its own right. Inclusion of this level
of detail is out of scope. While it is very relevant, it is not required for web compo‐
nent development.
Secondly, the number of device types and vendors—smartphones, tablets, phablets,
etc.—has increased significantly over the past five years. This proliferation of new
devices and manufacturers has reintroduced limitations that we assumed were issues
of the past: limited processing power, limited memory, smaller form factors, poor
network connectivity, etc. This influx of new devices has impacted web development
xiv | Preface
www.it-ebooks.info
![](https://csdnimg.cn/release/download_crawler_static/8564993/bg11.jpg)
in interesting ways, and introduced new concepts such as responsive design and
adaptive design. They have also introduced new interaction patterns, such as the
touch event and gestures. All the devices have their own sets of quirks. The new and
expanding mobile market is a field of its own within the web development world,
though, and too deep a topic to include here.
Trying to account for these complexities and others in web development when
authoring a book of this nature is simply not feasible. The book would be larger than
e Art of Computer Programming and out of date before the first chapter
was complete.
In addition to issues relating to the number of devices on the mar‐
ket and varying device capabilities, it is equally import to note
that the W3C Web Components specification is a working specifi‐
cation. As a result, information contained in this book will likely
become dated and require the publication of new editions as the
specification is finalized. A best effort will be made to follow the
specification as closely as possible.
Conventions Used in This Book
The following typographical conventions are used in this book:
Italic
Indicates new terms, URLs, email addresses, filenames, and file extensions.
Constant width
Used for program listings, as well as within paragraphs to refer to program ele‐
ments such as variable or function names, databases, data types, environment
variables, statements, and keywords.
Constant width bold
Shows commands or other text that should be typed literally by the user.
Constant width italic
Shows text that should be replaced with user-supplied values or by values deter‐
mined by context.
This icon signifies a tip or suggestion.
Preface | xv
www.it-ebooks.info
![](https://csdnimg.cn/release/download_crawler_static/8564993/bg12.jpg)
This icon signifies a general note.
This icon indicates a warning or caution.
Using Code Examples
Supplemental material (code examples, exercises, etc.) is available for download at
https://github.com/webcomponentsbook.
This book is here to help you get your job done. In general, if example code is offered
with this book, you may use it in your programs and documentation. You do not
need to contact us for permission unless you’re reproducing a significant portion of
the code. For example, writing a program that uses several chunks of code from this
book does not require permission. Selling or distributing a CD-ROM of examples
from O’Reilly books does require permission. Answering a question by citing this
book and quoting example code does not require permission. Incorporating a signifi‐
cant amount of example code from this book into your product’s documentation does
require permission.
We appreciate, but do not require, attribution. An attribution usually includes the
title, author, publisher, and ISBN. For example: “Developing Web Components by Jar‐
rod Overson and Jason Strimpel (O’Reilly). Copyright 2015 Jarrod Overson and Jason
Strimpel, 978-1-491-94902-3.”
If you feel your use of code examples falls outside fair use or the permission given
above, feel free to contact us at permissions@oreilly.com.
Safari® Books Online
Safari Books Online is an on-demand digital library that deliv‐
ers expert content in both book and video form from the
world’s leading authors in technology and business.
Technology professionals, software developers, web designers, and business and crea‐
tive professionals use Safari Books Online as their primary resource for research,
problem solving, learning, and certification training.
xvi | Preface
www.it-ebooks.info
![](https://csdnimg.cn/release/download_crawler_static/8564993/bg13.jpg)
Safari Books Online offers a range of plans and pricing for enterprise, government,
education, and individuals.
Members have access to thousands of books, training videos, and prepublication
manuscripts in one fully searchable database from publishers like O’Reilly Media,
Prentice Hall Professional, Addison-Wesley Professional, Microsoft Press, Sams, Que,
Peachpit Press, Focal Press, Cisco Press, John Wiley & Sons, Syngress, Morgan Kauf‐
mann, IBM Redbooks, Packt, Adobe Press, FT Press, Apress, Manning, New Riders,
McGraw-Hill, Jones & Bartlett, Course Technology, and hundreds more. For more
information about Safari Books Online, please visit us online.
How to Contact Us
Please address comments and questions concerning this book to the publisher:
O’Reilly Media, Inc.
1005 Gravenstein Highway North
Sebastopol, CA 95472
800-998-9938 (in the United States or Canada)
707-829-0515 (international or local)
707-829-0104 (fax)
We have a web page for this book, where we list errata, examples, and any additional
information. You can access this page at http://bit.ly/developing-web-components.
To comment or ask technical questions about this book, send email to bookques‐
tions@oreilly.com.
For more information about our books, courses, conferences, and news, see our web‐
site at http://www.oreilly.com.
Find us on Facebook: http://facebook.com/oreilly
Follow us on Twitter: http://twitter.com/oreillymedia
Watch us on YouTube: http://www.youtube.com/oreillymedia
Acknowledgments
Jason Strimpel
First, I would like to thank my wife Lasca for her encouragement and understanding.
I cannot imagine a better partner in life. I have never known a more intelligent, beau‐
tiful, and unique person. I love you. You are my favorite everything. Beep boop.
Preface | xvii
www.it-ebooks.info
![](https://csdnimg.cn/release/download_crawler_static/8564993/bg14.jpg)
I would also like to thank my manager, Claude Jones, for his guidance and help.
Without it, this book would not exist.
I would like to thank my coauthor Jarrod Overson for agreeing to step in and write
Part IV. If you sometimes think you’re faking it, then I am doomed, as you are defi‐
nitely a more gifted writer, speaker, and engineer than me.
Many thanks to Simon St.Laurent for hearing out my half-baked idea, and providing
the feedback that shaped it into an acceptable book proposal. Also, my editor Brian
Anderson is the most patient person I have ever known. Without him this book
would be nothing more than the inner workings of my mind without context and
would not be understood by anyone expect myself. Thank you Brian.
Finally, I would like to thank all the silent partners—the engineers who write much
better code than I ever will and have taught me innumerable lessons. They choose to
remain out of the public eye, but if you are lucky enough run across one of them in
your career—trust me, you will know it— then listen to them. It is because of these
silent partners that I am even passable at best for an engineer and that I am able to
share what little knowledge I do posses.
Jarrod Overson
None of my work would have been possible without the support and patience of my
wife, Kate Lane. For years now she has accommodated my ramblings about
JavaScript, particles, and physics simulations while always being supportive and moti‐
vating. Thank you for giving me the opportunities to speak abroad, code into the
night, and spend far too much time organizing community events. Without your
support none of what I have now would have been possible, including my two beauti‐
ful children.
Thank you Finn, for bringing so much joy into my life. All of your great ideas leave
me amazed and thrilled to be your father. Thank you Norah, for always being able to
put a smile on my face. Both of you have been my motivation to be a father and per‐
son that you can be proud of.
Finally, thank you, Jason, for thinking of me when putting this book together. You’re
one of San Diego’s best developers and it’s always an honor working with you. I hope
to be able to work with you many more times in the future.
xviii | Preface
www.it-ebooks.info
剩余251页未读,继续阅读
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![application/pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://profile-avatar.csdnimg.cn/default.jpg!1)
charlenezell
- 粉丝: 0
- 资源: 4
上传资源 快速赚钱
我的内容管理 收起
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![](https://csdnimg.cn/release/wenkucmsfe/public/img/voice.245cc511.png)
会员权益专享
最新资源
- 京瓷TASKalfa系列维修手册:安全与操作指南
- 小波变换在视频压缩中的应用
- Microsoft OfficeXP详解:WordXP、ExcelXP和PowerPointXP
- 雀巢在线媒介投放策划:门户网站与广告效果分析
- 用友NC-V56供应链功能升级详解(84页)
- 计算机病毒与防御策略探索
- 企业网NAT技术实践:2022年部署互联网出口策略
- 软件测试面试必备:概念、原则与常见问题解析
- 2022年Windows IIS服务器内外网配置详解与Serv-U FTP服务器安装
- 中国联通:企业级ICT转型与创新实践
- C#图形图像编程深入解析:GDI+与多媒体应用
- Xilinx AXI Interconnect v2.1用户指南
- DIY编程电缆全攻略:接口类型与自制指南
- 电脑维护与硬盘数据恢复指南
- 计算机网络技术专业剖析:人才培养与改革
- 量化多因子指数增强策略:微观视角的实证分析
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![](https://img-home.csdnimg.cn/images/20220527035711.png)
![](https://img-home.csdnimg.cn/images/20220527035711.png)
![](https://img-home.csdnimg.cn/images/20220527035111.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![](https://csdnimg.cn/release/wenkucmsfe/public/img/green-success.6a4acb44.png)