Cross-Terminal Web cover

Cross-Terminal Web

Rating 3.5
Word count
48K words
Chapters
133
ISBN
9787121233456

Tags

Summary

The mobile internet has swept into our lives. In this book the author distills his hands-on cross-device web development experience at Baidu and Tmall into practical technical solutions for readers. Chapter 1 introduces the concept of cross-device web and the multiple paths to achieving it; Chapter 2 covers the technical foundations of Mobile Web; Chapters 3–7, the heart of the book, follow the development workflow to explain step by step the technical infrastructure needed for cross-device web; Chapter 8 introduces the evolution, implementation details, and mature frameworks of Hybrid App; Chapter 9 presents a cross-device storage (Storage) solution that was once the author’s award-winning work; and Chapter 10 provides a complete account of achieving cross-device action synchronization through script recording and playback.

Editor's review

This book draws on the author’s cross-device web development practice at Baidu and Tmall, turning first-hand experience into implementable technical solutions. It is organized around the development workflow: it first defines the concept of cross-device web and its implementation approaches, then fills in the technical foundations of Mobile Web, devotes five chapters to the technical infrastructure supporting cross-device development, and finally extends to Hybrid App, cross-device storage, and action synchronization via script recording and playback. Its strength lies in not dealing in abstractions but in placing solutions back within real engineering workflows and clearly explaining their dependencies. The chapters on storage and action synchronization especially reflect the author’s own practical accumulation. For front-end teams moving from single-device to multi-device adaptation, the book offers a comparable construction blueprint rather than a miscellany of scattered tips. Readers are advised to align the chapters with their own project workflows and, while reading, map out their team’s existing technical gaps.

Who it's for

A good fit for

  • Front-end engineers advancing multi-device adaptation or cross-device architecture
  • Technical leads who need to understand Mobile Web and Hybrid App solutions
  • Developers with a web development foundation who want a systematic understanding of cross-device practice paths
  • Product and technical teams responsible for front-end technology selection and engineering workflow design

Not a good fit for

  • Complete beginners with no HTML, CSS, or JavaScript foundation
  • Developers focused only on native iOS or Android development and not involved in the web technology stack
  • Readers seeking the latest framework versions and cutting-edge toolchain developments

Reading tips

  1. Read Chapter 1 first to build a conceptual framework for cross-device web, then proceed in the development-workflow order of Chapters 3–7; avoid skipping, which can leave solutions disconnected.
  2. While reading, compare against your team’s current project workflow, list technical gaps chapter by chapter, and turn the book’s solutions into an action list.
  3. Chapters 8–10 can be explored as special topics; conduct small-scale validation against real scenarios in Hybrid App, storage, and action synchronization.
  4. For the frameworks and solutions covered, judge their applicability against the current technology environment rather than copying them blindly.

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. 版权信息
  2. 推荐序
  3. 前言
  4. 感谢
  5. 1 跨终端Web
  6. 1.1 终端VS.设备
  7. 1.2 一个贯穿全书的例子
  8. 1.3 后续章节
  9. 1.4 移动优先
  10. 1.4.1 移动流量暴增
  11. 1.4.2 聚焦业务本质
  12. 1.4.3 人机交互扩展
  13. 1.4.4 再说书名
  14. 1.5 不只是响应式
  15. 1.5.1 响应式
  16. 1.5.2 多站点
  17. 1.5.3 多模板
  18. 1.5.4 多平台
  19. 1.6 解决方案
  20. 2 Mobile Web
  21. 2.1 HTML5
  22. 2.2 HTML
  23. 2.2.1 移动页面模板
  24. 2.2.2 Viewport
  25. 2.2.3 touch-icon
  26. 2.2.4 其他
  27. 2.3 触屏事件
  28. 2.3.1 触屏事件一览
  29. 2.3.2 通用触屏事件
  30. 2.4 调试
  31. 2.4.1 远程调试
  32. 2.4.2 设备调试
  33. 2.5 兼容性
  34. 2.5.1 OS版本碎片化
  35. 2.5.2 国内的特殊情况
  36. 2.5.3 WebView
  37. 2.5.4 更多工具
  38. 2.6 文档
  39. 3 基准
  40. 3.1 GBS
  41. 3.2 MGBS
  42. 3.2.1 准备
  43. 3.2.2 操作系统分级
  44. 3.2.3 屏幕分辨率分级
  45. 3.2.4 浏览器分级
  46. 3.2.5 MGBS
  47. 3.3 GTE
  48. 3.3.1 分层设计
  49. 3.3.2 核心层
  50. 3.3.3 数据层
  51. 4 检测
  52. 4.1 终端
  53. 4.1.1 什么是终端
  54. 4.1.2 分类
  55. 4.2 终端检测
  56. 4.2.1 场景
  57. 4.2.2 原理
  58. 4.2.3 实现
  59. 4.3 遗留问题
  60. 4.3.1 硬件信息
  61. 4.3.2 更精准的终端检测
  62. 5 接口
  63. 5.1 跨终端流程复用
  64. 5.1.1 示例1
  65. 5.1.2 示例2
  66. 5.2 IF
  67. 5.2.1 始于一次重构
  68. 5.2.2 新的环境
  69. 5.2.3 模型
  70. 5.2.4 解决方案
  71. 5.2.5 架构
  72. 5.2.6 路线图
  73. 5.3 if-spec 2.0
  74. 5.3.1 JSON Schema
  75. 5.3.2 Demo
  76. 5.3.3 meta
  77. 5.3.4 if-spec 1.0
  78. 5.4 if-mock 2.0
  79. 5.5 if-guide 2.0
  80. 5.6 总结
  81. 6 定位
  82. 6.1 定位
  83. 6.1.1 Hash
  84. 6.1.2 History API
  85. 6.1.3 视图定位
  86. 6.2 数据
  87. 7 预览
  88. 7.1 客户端
  89. 7.2 服务端
  90. 7.3 示例
  91. 8 Hybrid App
  92. 8.1 Hybrid简史
  93. 8.1.1 背景
  94. 8.1.2 简史
  95. 8.1.3 现状
  96. 8.2 Hybrid技术
  97. 8.2.1 Native调用Web
  98. 8.2.2 Web调用Native
  99. 8.2.3 Bridge
  100. 8.3 Hybrid框架
  101. 8.3.1 PhoneGap
  102. 8.3.2 Titanium
  103. 8.4 Device API
  104. 8.4.1 动作传感器
  105. 8.4.2 环境传感器
  106. 8.4.3 音频
  107. 8.4.4 视频
  108. 8.5 小结
  109. 9 存储
  110. 9.1 状态持久化
  111. 9.2 技术方案
  112. 9.2.1 整体方案
  113. 9.2.2 跨终端存储方案
  114. 9.2.3 跨域通信方案
  115. 9.2.4 安全性
  116. 9.2.5 遗留问题
  117. 9.3 使用
  118. 9.3.1 实例化
  119. 9.3.2 set/get
  120. 9.3.3 remove/clear
  121. 9.3.4 推荐命名
  122. 10 动作同步
  123. 10.1 原理
  124. 10.1.1 案例
  125. 10.1.2 动作同步
  126. 10.2 实现
  127. 10.2.1 Selenium
  128. 10.2.2 脚本录制和回放
  129. 附录A GBS
  130. 附录B JSON Schema Core
  131. 附录C JSON Schema Validation
  132. 附录D if-spec 2.0
  133. 作者简介

FAQ

Is this book suitable for front-end beginners?
Not really. Although Chapter 2 introduces Mobile Web technical foundations, the book as a whole unfolds along an engineering development workflow and assumes some web development experience. Beginners are advised to first master HTML, CSS, and JavaScript fundamentals; they will get more from the book afterward.
Do the book’s technical solutions still have reference value today?
The book was published in 2017, and specific framework and tool versions have changed over time, but its cross-device solution thinking, development-workflow organization, and architectural considerations for Hybrid App remain instructive. Readers should focus on the design logic behind the solutions rather than copying implementation details.
What is special about the cross-device storage solution in Chapter 9?
According to the author, this storage solution was once his award-winning work, and the book devotes a dedicated section to it. It addresses consistency and availability of storage in cross-device scenarios; readers can evaluate and draw on it in light of their own multi-device data synchronization needs.
What prior knowledge does the action synchronization chapter require?
Chapter 10 achieves cross-device action synchronization through script recording and playback, involving basic concepts of front-end scripting and event handling. Readers are advised to first read Chapter 2 on Mobile Web technical foundations and the earlier development-workflow chapters, and to enter this topic after understanding the overall architecture.

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

徐凯 Author

Xu Kai is a Chinese book author. Public information about him is limited, and his nationality, dates of birth and death, and educational background cannot currently be confirmed. Judging from the two works held in the library, his writing spans quite different subjects: one is a popular science book introducing knowledge about the opening of railway services, and the other is a programming and design book discussing cross-terminal Web. This combination suggests that he is able to address both accessible science for general readers and specialized technical development, and that his interests and writing are not confined to a single direction. Popular science writing usually focuses on explaining professional knowledge clearly and understandably, while programming books emphasize the accurate expression of concepts and methods; in both kinds of writing, Xu Kai has left texts that readers can consult. Because the available material covers only the categories and titles of his works, more information is still needed about his specific experience, the development of his writing style, and the actual influence of his works.

More by the same author

Top rated in the same category