深入编程:HTML5应用程序开发
5星 · 超过95%的资源 需积分: 10 171 浏览量
更新于2024-07-30
1
收藏 1.38MB PDF 举报
"Programming HTML5 Applications"是一本由Zachary Kessin编写的关于HTML5应用程序开发的电子书。这本书深入探讨了如何利用HTML5构建强大的Web应用,并涵盖了JavaScript的核心概念、测试策略以及本地存储等关键主题。
在第一章"The Web as Application Platform"中,作者介绍了Web作为应用程序平台的发展,强调了HTML5在提升Web应用功能方面的重要性。他指出,随着Web技术的进步,开发者能够创建出具有更多交互性和复杂性的应用程序,从而超越传统的静态网页。
第二章"The Power of JavaScript"深入讲解了JavaScript语言的关键特性。Kessin讨论了JavaScript的胜利,解释了非阻塞I/O和回调函数如何改进了Web应用的性能。他还介绍了λ(lambda)函数的强大之处,以及闭包的概念,这是JavaScript中实现模块化和数据隐藏的关键工具。此外,他还探讨了函数式编程的概念,以及如何通过原型扩展对象。Kessin还讨论了函数的原型扩展、柯里化(currying)以及对象参数,以及数组迭代操作,这些都极大地增强了JavaScript的灵活性和功能性。
第三章"Testing JavaScript applications"关注的是JavaScript应用的测试实践。书中提到了QUnit作为JavaScript测试框架的一个例子,提供了简单的示例来说明如何使用QUnit进行测试。同时,Kessin还介绍了模拟(mocking)和桩(stubs)的概念,以及Selenium——一个用于Web应用自动化测试的工具。他详细解释了Selenium的命令结构,如何使用Selenium IDE构造测试,以及如何自动运行测试。此外,他还提到了Selenium RC和测试农场,这使得在不同环境和浏览器上进行大规模测试成为可能。
第四章"LocalStorage"探讨了HTML5中的本地存储特性,包括localStorage和sessionStorage对象。这些对象允许Web应用在用户浏览器中存储数据,从而实现离线功能和数据持久化。Kessin展示了如何使用这些对象来保存和检索用户数据,这对于构建更健壮和用户友好的Web应用至关重要。
"Programming HTML5 Applications"是一本全面介绍HTML5应用程序开发的指南,它不仅覆盖了HTML5的新特性,还深入剖析了JavaScript的核心概念,以及测试和数据存储的最佳实践。对于想要提升Web开发技能的开发者来说,这本书是宝贵的参考资料。
2010-09-21 上传
2018-03-29 上传
2014-07-16 上传
2016-12-12 上传
2019-09-23 上传
2007-08-21 上传
2007-10-22 上传
seanchan
- 粉丝: 7
- 资源: 22
最新资源
- 掌握Jive for Android SDK:示例应用的使用指南
- Python中的贝叶斯建模与概率编程指南
- 自动化NBA球员统计分析与电子邮件报告工具
- 下载安卓购物经理带源代码完整项目
- 图片压缩包中的内容解密
- C++基础教程视频-数据类型与运算符详解
- 探索Java中的曼德布罗图形绘制
- VTK9.3.0 64位SDK包发布,图像处理开发利器
- 自导向运载平台的行业设计方案解读
- 自定义 Datadog 代理检查:Python 实现与应用
- 基于Python实现的商品推荐系统源码与项目说明
- PMing繁体版字体下载,设计师必备素材
- 软件工程餐厅项目存储库:Java语言实践
- 康佳LED55R6000U电视机固件升级指南
- Sublime Text状态栏插件:ShowOpenFiles功能详解
- 一站式部署thinksns社交系统,小白轻松上手