A Detailed Guide to Advanced HTML5 APIs cover

A Detailed Guide to Advanced HTML5 APIs

No rating yet
Word count
480 words
Chapters
17
ISBN
9787121329272

Tags

Summary

This book was organized by the Xiongdilian Education team and co-authored by Gao Luofeng, Hu Hongyun, and Liu Tao. It is built around the goal of "using HTML5 technology to rapidly build cross-platform mobile apps" and comprises 17 chapters, broadly divided into three parts. Part One lays the groundwork in fundamentals and approach: Chapter 1, "An Overview of HTML5," discusses the pros and cons of native versus hybrid apps, compares mobile websites with native apps, and introduces a Web API–centered, component-based, automated build approach; Chapter 2 uses the bMap JavaScript API to demonstrate geolocation services, including applying for a key, adding location controls, and examples for walking, driving, transit routes, and local search. Part Two focuses on core HTML5 APIs: Web Storage, including setItem, getItem, key, removeItem, and clear, with a slideshow example; Canvas drawing, from rectangle diagonals, circles, and rectangles to drawing a clock; WebSocket, contrasting HTTP sessions and building a chat room case; FileReader for reading text and image files; and the drag-and-drop API, implementing list and file drag-and-drop. Part Three turns to hybrid mobile development: setting up and installing Apache Cordova (PhoneGap), configuring JDK, Android Studio, and the SDK, debugging on Android and Apple devices, and topical APIs including flexbox layout, Cordova event handling, geolocation, device orientation, multimedia, the built-in browser, database storage, and Device Motion. The book is example-driven throughout and emphasizes "drawing inferences from every example," making it suitable for readers with a foundation in JavaScript and HTML5 who are preparing to enter mobile hybrid development.

Editor's review

很多HTML5入门书止步于标签和CSS,而真正让人卡住的是“API怎么用在实际项目里”。这本书的定位恰好填上了这一段:它不讲语法入门,而是直接把若干个HTML5核心API和Cordova混合开发串成一条可动手的路径。 书中的组织方式很“教学化”:每个API先讲是什么、为什么用,再给一个由浅入深的小例子,最后落到一个相对完整的案例——Canvas从画一条对角线讲到画一只时钟,WebSocket从会话对比讲到聊天室,拖放API从列表拖放讲到文件拖放。这种层层递进的写法,适合自学者按章节跟做。 另一处价值在于Cordova部分。把网页打包成能在安卓、iOS上运行的App,是很多前端开发者绕不开的需求,而书中对JDK、Android Studio、SDK管理、真机调试这些容易踩坑的环节都有交代,省去大量检索时间。当然,书出版于2017年,部分工具版本和API现状已有变化,读者需要结合最新文档核对。作为一本以实例为骨架的技术书,它更适合作为“练手项目手册”,而非体系化的原理教材。

Who it's for

A good fit for

  • 已掌握JavaScript与HTML5基础语法、想进一步学习浏览器API的前端初学者
  • 希望用HTML5+Cordova把网页打包成移动App的开发者
  • 需要一本实例驱动教材的培训机构学员或高校Web课程学生
  • 对Canvas、WebSocket、本地存储等专题感兴趣、想快速上手的自学者

Not a good fit for

  • 完全没有HTML、CSS和JavaScript基础的零起点读者
  • 期望系统学习框架(如React、Vue)或工程化体系的前端进阶者
  • 需要紧跟最新规范与工具版本、要求内容完全时效的从业者

Reading tips

  1. 先读第1章建立“原生、混合、移动Web”的整体判断,再决定后续章节的投入重点
  2. 第2至第7章务必边读边敲代码,每个实例跑通后再看下一个,效果远比通读好
  3. Cordova部分建议对照官方最新文档核对环境搭建和命令行参数,避免被旧版本细节绊住
  4. 读完一个API后尝试改造案例,例如把聊天室换成自己的业务场景,巩固迁移能力

About the publisher

Publishing House of Electronics Industry China · Founded in 1982

The Publishing House of Electronics Industry is a comprehensive publisher distinguished by its focus on electronic information and related fields. Judging from the more than 3,000 titles in its catalogue, its publishing covers programming and design, artificial intelligence, computer science, finance and economics, photography, and social sciences, attending both to cutting-edge technology and to general readers. Representative titles include Factor Investing: Methods and Practice, x86 Assembly Language: From Real Mode to Protected Mode, The RISC-V Reader, Artificial Intelligence: Speech Recognition, Understanding and Practice, Phased Array Radar Technology, Radar Target Characteristics, and 100 Go Mistakes and How to Avoid Them, most of which centre on technical methods and engineering practice. Its authors include Shi Chuan, Li Zhong, Wang Xiaobo, David Patterson, Andrew Waterman, and Yu Zihao, among others from China and abroad. Owing to limited public information, no further publishing features are elaborated here.

Contents

  1. Chapter 1: An Overview of HTML5
  2. Chapter 2: HTML5 bMap Geolocation and Services
  3. Chapter 3: HTML5 Local Storage
  4. Chapter 4: Applications of the HTML5 Canvas API
  5. Chapter 5: Applications of WebSocket in HTML5
  6. Chapter 6: Using the FileReader API
  7. Chapter 7: The HTML5 Drag-and-Drop API
  8. Chapter 8: Introduction to Apache Cordova
  9. Chapter 9: On-Device Debugging and Essential Knowledge for Cordova
  10. Chapter 10: Cordova Development Fundamentals
  11. Chapter 11: Event Handling in Cordova
  12. Chapter 12: Cordova Geolocation Services
  13. Chapter 13: The Cordova Device Orientation API
  14. Chapter 14: Multimedia in Cordova
  15. Chapter 15: The Built-in Browser in Cordova
  16. Chapter 16: Database Storage in Cordova
  17. Chapter 17: The Device Motion API in Cordova

FAQ

这本书需要什么基础才能读?
书中明确面向有一定JavaScript和HTML5开发基础的读者。若还不熟悉DOM操作、事件和基本语法,建议先补基础,否则实例部分容易跟不上。
书里的Cordova内容现在还能用吗?
核心思路(环境搭建、真机调试、插件调用)依然适用,但书中涉及的JDK、Android Studio、SDK版本和命令细节已发生变化,实践时需对照Cordova官方文档更新。
这本书和常见的HTML5入门书有什么区别?
它不铺陈标签和CSS基础,而是聚焦Web Storage、Canvas、WebSocket、FileReader、拖放等API,并延伸到Cordova混合App开发,更接近实例型实战手册。
全书有多少章、大概什么篇幅?
全书共17章,约276页、48万字,按内容分为HTML5基础思路、核心API实例、Cordova混合开发三个部分。

Comments

Find this book

This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.

About the author

Gao Luofeng Author

Gao Luofeng is a Chinese author of computer technology books. Public information about him is limited, and his writing centers mainly on Web development and front-end technologies. Three of his works are included in the collection: Detailed Explanation of PHP (4th Edition), Detailed Explanation of Advanced HTML5 APIs, and Learning PHP with Brothers. His subjects fall under computing, programming design, and software learning. Judging from the titles and topics, he prefers to explain technology in a detailed, step-by-step manner, emphasizing the combination of language fundamentals, API usage, and hands-on practice for readers who want to start systematically and then go deeper. Detailed Explanation of PHP (4th Edition) continues the series' careful treatment of PHP knowledge, Detailed Explanation of Advanced HTML5 APIs shifts attention to advanced front-end interfaces, and Learning PHP with Brothers has a clear tutorial, learn-along character. Overall, his writing balances completeness of knowledge with readability and suits self-learners who prefer to practice in order.

Hu Hongyun Author

Hu Hongyun is the author of a computer technology book, with public information about him being limited. His representative work is Detailed Explanation of Advanced HTML5 APIs. Judging from the title and its common classification, the book addresses the field of web front-end development and focuses on the advanced application programming interfaces provided by HTML5, making it a programming title that emphasizes technical detail and practical use. Books of this kind generally serve developers who already have some foundation, helping readers understand the capabilities and invocation methods of browser-side interfaces, and thus offer practical value to readers in computer and programming design categories. Since only one work by this author is held in the collection, and his birth and death years, nationality, and professional career cannot be verified, this introduction makes no speculation and only describes his writing direction objectively.

Liu Tao Author

Liu Tao is a Chinese author of technical books. Public information about him is limited, and the only confirmed work is Detailed Explanation of Advanced HTML5 APIs. The book belongs to the fields of computing and programming design and focuses on advanced application programming interfaces in HTML5, making it a technical title in front-end development. Judging from its title and category, the writing emphasizes the organization and explanation of a specific technical subject and is intended for developers who want a deeper understanding of HTML5-related APIs. Since only one work by this author is included in the database, his biography, education, and professional identity cannot be verified, and this introduction does not speculate about them. Based on the available information, Liu Tao's writing centers on topic-based treatment of Web front-end technology, with a clear and focused subject that can serve as a reference for learning about advanced HTML5 API applications.