2026-10-16 11:33:54 +08:00
<!DOCTYPE html>
< html lang = "zh-CN" data-theme = "light" >
< head >
< meta charset = "utf-8" >
< meta name = "viewport" content = "width=device-width, initial-scale=1" >
< title > Web 前端基础与调试 · 阶段 1 · 会测 模块 3 · 测试开发工程师从零到成熟< / title >
< meta name = "description" content = "Web 前端基础与调试 模块目录:共 13 章、58 个小节。" >
< link rel = "stylesheet" href = "../../assets/doc.css" >
< / head >
< body >
< header class = "topbar" >
< div class = "tb-in" >
< a class = "brand" href = "../../index.html" > < span class = "logo" > QA< / span > < div > 从零到成熟< small > 测试开发 · 模块详解< / small > < / div > < / a >
< div class = "crumbs" >
< a href = "../../index.html" > 学习路径< / a > < span class = "sep" > /< / span >
< a href = "../../index.html#s1" > 阶段 1 · 会测< / a > < span class = "sep" > /< / span >
< b > Web 前端基础与调试< / b >
< / div >
< div class = "spacer" > < / div >
< button class = "btn" id = "tocToggle" > ☰ 导航< / button >
< button class = "btn" id = "themeBtn" title = "切换到深色主题" > 深色< / button >
< / div >
< / header >
< div class = "layout" id = "layout" >
< aside class = "sidebar" >
< h2 > 章节目录< / h2 >
< nav id = "chapters" > < a class = "toc-a" href = "01-why.html" > < i class = "cn" > 1< / i > 为什么测试要懂前端< / a > < div class = "subnav" > < a class = "toc-a lv3" href = "01-why.html#sec-1-1" > 前端能制造哪些缺陷< / a > < a class = "toc-a lv3" href = "01-why.html#sec-1-2" > 「这是前端问题还是后端问题」的判断线< / a > < a class = "toc-a lv3" href = "01-why.html#sec-1-3" > 前端知识清单:够用就好< / a > < a class = "toc-a lv3" href = "01-why.html#sec-1-4" > 本章约定:示例站点与统一命名< / a > < / div > < a class = "toc-a" href = "02-html-css.html" > < i class = "cn" > 2< / i > HTML 与 CSS: 页面是怎么长出来的< / a > < div class = "subnav" > < a class = "toc-a lv3" href = "02-html-css.html#sec-2-1" > DOM 树与选择器:页面元素怎么被定位< / a > < a class = "toc-a lv3" href = "02-html-css.html#sec-2-2" > 盒模型与布局: display、position、z-index< / a > < a class = "toc-a lv3" href = "02-html-css.html#sec-2-3" > 「元素点不到」的四种原因< / a > < a class = "toc-a lv3" href = "02-html-css.html#sec-2-4" > 表单元素与前端校验的边界< / a > < a class = "toc-a lv3" href = "02-html-css.html#sec-2-5" > 从 Elements 面板反读页面结构< / a > < / div > < a class = "toc-a" href = "03-js.html" > < i class = "cn" > 3< / i > JavaScript 与异步:按钮点下去之后发生了什么< / a > < div class = "subnav" > < a class = "toc-a lv3" href = "03-js.html#sec-3-1" > 事件绑定与事件冒泡< / a > < a class = "toc-a lv3" href = "03-js.html#sec-3-2" > 同步与异步:一次点击的真实时间线< / a > < a class = "toc-a lv3" href = "03-js.html#sec-3-3" > DOM 动态渲染:元素为什么还没出现< / a > < a class = "toc-a lv3" href = "03-js.html#sec-3-4" > 请求是怎么发出去的: fetch 与 axios< / a > < a class = "toc-a lv3" href = "03-js.html#sec-3-5" > 报错怎么读: Console 里的五类错误< / a > < / div > < a class = "toc-a" href = "04-devtools.html" > < i class = "cn" > 4< / i > DevTools 四大面板实战< / a > < div class = "subnav" > < a class = "toc-a lv3" href = "04-devtools.html#sec-4-1" > Elements: 改 DOM、改样式、定位元素< / a > < a class = "toc-a lv3" href = "04-devtools.html#sec-4-2" > Console: 看报错、跑代码、查状态< / a > < a class = "toc-a lv3" href = "04-devtools.html#sec-4-3" > Network: 请求、响应、时序与筛选< / a > < a class = "toc-a lv3" href = "04-devtools.html#sec-4-4" > Sources: 断点、调用栈与条件断点< / a > < a class = "toc-a lv3" href = "04-devtools.html#sec-4-5" > Application: Cookie、存储与 Service Worker< / a > < / div > < a class = "toc-a" href = "05-cache.html" > < i class = "cn" > 5< / i > 缓存:改了没生效的第一嫌疑< / a > < div class = "subnav" > < a class = "toc-a lv3" href = "05-cache.html#sec-5-1" > 强缓存与协商缓存< / a > < a class = "toc-a lv3" href = "05-cache.html#sec-5-2" > 前端资源版本化与发布后的旧页面< / a > < a class = "toc-a lv3" href = "05-cache.html#sec-5-3" > 接口缓存与 CDN< / a > < a class = "toc-a lv3" href = "05-cache.html#sec-5-4" > 复现与验证:三类证据< / a > < a class = "toc-a lv3" href = "05-cache.html#sec-5-5" > 缓存类缺陷的缺陷单写法< / a > < / div > < a class = "toc-a" href = "06-async-render.html" > < i class = "cn" > 6< / i > 异步渲染与「元素找不到」< / a > < div class = "subnav" > < a class = "toc-a lv3" href = "06-async-render.html#sec-6-1" > 元素找不到的五种原因< / a > < a class = "toc-a lv3" href = "06-async-render.html#sec-6-2" > 等待策略:显式等待与固定等待的差别< / a > < a class = "toc-a lv3" href = "06-async-render.html#sec-6-3" > 骨架屏、懒加载与虚拟列表< / a > < a class = "toc-a lv3" href = "06-async-render.html#sec-6-4" > 复现与证据固化< / a > < a class = "toc-a lv3" href = "06-async-render.html#sec-6-5" > 为自动化埋下可测性< / a > < / div > < a class = "toc-a" href = "07-iframe-window.html" > < i class = "cn" > 7< / i > iframe、多窗口与多标签< / a > < div class = "subnav" > < a class = "toc-a lv3" href = "07-iframe-window.html#sec-7-1" > iframe 的常见用法与切换< / a > < a class = "toc-a lv3" href = "07-iframe-window.html#sec-7-2" > 跨域 iframe 能看到什么< / a > < a class = "toc-a lv3" href = "07-iframe-window.html#sec-7-3" > 新标签页、弹窗与内嵌 WebView< / a > < a class = "toc-a lv3" href = "07-iframe-window.html#sec-7-4" > 元素定位不到时,先问它在哪个 frame< / a > < a class = "toc-a lv3" href = "07-iframe-window.html#sec-7-5" > iframe 缺陷的复现<E5A48D>
< div class = "side-foot" >
< a class = "btn" href = "index.html" > ← 模块目录< / a >
< a class = "btn" href = "../../index.html" > 学习路径< / a >
< / div >
< / aside >
< div class = "mask" id = "mask" > < / div >
< main class = "main-col" >
< article >
< div class = "modhero" >
< span class = "mh-no" > 阶段 1 · 会测 · 模块 3 / 4< / span >
< h1 > Web 前端基础与调试< / h1 >
< p class = "mh-sub" > HTML / CSS / JS · DevTools · 缓存与异步 · 埋点与灰度< / p >
< div class = "mh-meta" >
< span > 共 < b > 13< / b > 章< / span >
< span > < b > 58< / b > 个小节< / span >
2026-10-16 15:38:20 +08:00
< span > 约 < b > 68< / b > 千字< / span >
2026-10-16 11:33:54 +08:00
< span > 建议投入 18– 24 小时< / span >
< / div >
< / div >
< p class = "lead" >
< b > 模块定位:< / b > 阶段 1 的第 3 个模块。前端是缺陷的入口,也是「责任边界」争论最集中的一层。能读 DOM、能看 Network、能在 Sources 里打断点,你就不需要靠猜和转述。< br > < br > < b > 学完之后你应该能:< / b > 用 DevTools 复现「只在特定条件下出现」的前端缺陷( 缓存、异步渲染、iframe) ; 用控制台与请求记录证明问题出在哪一层; 看懂埋点与灰度开关导致的「数据缺失」和「功能不生效」。< br > < br > < b > 学习方式:< / b > 把浏览器开发者工具当成主战场,每看一个现象都要求自己拿到一份可复现的证据(截图 + 请求记录 + 控制台输出)。
< / p >
< h2 id = "chapters-list" > 章节目录< / h2 >
< ol class = "chaplist" >
< li class = "chap-item" >
< div class = "ci-head" >
< span class = "ci-no" > 1< / span >
< a class = "ci-title" href = "01-why.html" > 为什么测试要懂前端< / a >
< a class = "ci-go" href = "01-why.html" > 进入 →< / a >
< / div >
< div class = "ci-secs" > < a href = "01-why.html#sec-1-1" > 前端能制造哪些缺陷< / a > < a href = "01-why.html#sec-1-2" > 「这是前端问题还是后端问题」的判断线< / a > < a href = "01-why.html#sec-1-3" > 前端知识清单:够用就好< / a > < a href = "01-why.html#sec-1-4" > 本章约定:示例站点与统一命名< / a > < / div >
< / li >
< li class = "chap-item" >
< div class = "ci-head" >
< span class = "ci-no" > 2< / span >
< a class = "ci-title" href = "02-html-css.html" > HTML 与 CSS: 页面是怎么长出来的< / a >
< a class = "ci-go" href = "02-html-css.html" > 进入 →< / a >
< / div >
< div class = "ci-secs" > < a href = "02-html-css.html#sec-2-1" > DOM 树与选择器:页面元素怎么被定位< / a > < a href = "02-html-css.html#sec-2-2" > 盒模型与布局: display、position、z-index< / a > < a href = "02-html-css.html#sec-2-3" > 「元素点不到」的四种原因< / a > < a href = "02-html-css.html#sec-2-4" > 表单元素与前端校验的边界< / a > < a href = "02-html-css.html#sec-2-5" > 从 Elements 面板反读页面结构< / a > < / div >
< / li >
< li class = "chap-item" >
< div class = "ci-head" >
< span class = "ci-no" > 3< / span >
< a class = "ci-title" href = "03-js.html" > JavaScript 与异步:按钮点下去之后发生了什么< / a >
< a class = "ci-go" href = "03-js.html" > 进入 →< / a >
< / div >
< div class = "ci-secs" > < a href = "03-js.html#sec-3-1" > 事件绑定与事件冒泡< / a > < a href = "03-js.html#sec-3-2" > 同步与异步:一次点击的真实时间线< / a > < a href = "03-js.html#sec-3-3" > DOM 动态渲染:元素为什么还没出现< / a > < a href = "03-js.html#sec-3-4" > 请求是怎么发出去的: fetch 与 axios< / a > < a href = "03-js.html#sec-3-5" > 报错怎么读: Console 里的五类错误< / a > < / div >
< / li >
< li class = "chap-item" >
< div class = "ci-head" >
< span class = "ci-no" > 4< / span >
< a class = "ci-title" href = "04-devtools.html" > DevTools 四大面板实战< / a >
< a class = "ci-go" href = "04-devtools.html" > 进入 →< / a >
< / div >
< div class = "ci-secs" > < a href = "04-devtools.html#sec-4-1" > Elements: 改 DOM、改样式、定位元素< / a > < a href = "04-devtools.html#sec-4-2" > Console: 看报错、跑代码、查状态< / a > < a href = "04-devtools.html#sec-4-3" > Network: 请求、响应、时序与筛选< / a > < a href = "04-devtools.html#sec-4-4" > Sources: 断点、调用栈与条件断点< / a > < a href = "04-devtools.html#sec-4-5" > Application: Cookie、存储与 Service Worker< / a > < / div >
< / li >
< li class = "chap-item" >
< div class = "ci-head" >
< span class = "ci-no" > 5< / span >
< a class = "ci-title" href = "05-cache.html" > 缓存:改了没生效的第一嫌疑< / a >
< a class = "ci-go" href = "05-cache.html" > 进入 →< / a >
< / div >
< div class = "ci-secs" > < a href = "05-cache.html#sec-5-1" > 强缓存与协商缓存< / a > < a href = "05-cache.html#sec-5-2" > 前端资源版本化与发布后的旧页面< / a > < a href = "05-cache.html#sec-5-3" > 接口缓存与 CDN< / a > < a href = "05-cache.html#sec-5-4" > 复现与验证:三类证据< / a > < a href = "05-cache.html#sec-5-5" > 缓存类缺陷的缺陷单写法< / a > < / div >
< / li >
< li class = "chap-item" >
< div class = "ci-head" >
< span class = "ci-no" > 6< / span >
< a class = "ci-title" href = "06-async-render.html" > 异步渲染与「元素找不到」< / a >
< a class = "ci-go" href = "06-async-render.html" > 进入 →< / a >
< / div >
< div class = "ci-secs" > < a href = "06-async-render.html#sec-6-1" > 元素找不到的五种原因< / a > < a href = "06-async-render.html#sec-6-2" > 等待策略:显式等待与固定等待的差别< / a > < a href = "06-async-render.html#sec-6-3" > 骨架屏、懒加载与虚拟列表< / a > < a href = "06-async-render.html#sec-6-4" > 复现与证据固化< / a > < a href = "06-async-render.html#sec-6-5" > 为自动化埋下可测性< / a > < / div >
< / li >
< li class = "chap-item" >
< div class = "ci-head" >
< span class = "ci-no" > 7< / span >
< a class = "ci-title" href = "07-iframe-window.html" > iframe、多窗口与多标签< / a >
< a class = "ci-go" href = "07-iframe-window.html" > 进入 →< / a >
< / div >
< div class = "ci-secs" > < a href = "07-iframe-window.html#sec-7-1" > iframe 的常见用法与切换< / a > < a href = "07-iframe-window.html#sec-7-2" > 跨域 iframe 能看到什么< / a > < a href = "07-iframe-window.html#sec-7-3" > 新标签页、弹窗与内嵌 WebView< / a > < a href = "07-iframe-window.html#sec-7-4" > 元素定位不到时,先问它在哪个 frame< / a > < a href = "07-iframe-window.html#sec-7-5" > iframe 缺陷的复现与证据< / a > < / div >
< / li >
< li class = "chap-item" >
< div class = "ci-head" >
< span class = "ci-no" > 8< / span >
< a class = "ci-title" href = "08-mobile.html" > 移动端与响应式< / a >
< a class = "ci-go" href = "08-mobile.html" > 进入 →< / a >
< / div >
< div class = "ci-secs" > < a href = "08-mobile.html#sec-8-1" > 视口、响应式断点与单位< / a > < a href = "08-mobile.html#sec-8-2" > 模拟器与真机的差异< / a > < a href = "08-mobile.html#sec-8-3" > H5、WebView 与小程序容器< / a > < a href = "08-mobile.html#sec-8-4" > 真机上更容易挂的四类原因< / a > < a href = "08-mobile.html#sec-8-5" > 真机取证:远程调试与抓包< / a > < / div >
< / li >
< li class = "chap-item" >
< div class = "ci-head" >
< span class = "ci-no" > 9< / span >
< a class = "ci-title" href = "09-security.html" > 前端安全基础: XSS、CSRF 与敏感信息< / a >
< a class = "ci-go" href = "09-security.html" > 进入 →< / a >
< / div >
< div class = "ci-secs" > < a href = "09-security.html#sec-9-1" > XSS 的三种类型与验证方法< / a > < a href = "09-security.html#sec-9-2" > CSRF 是怎么发生的,防护怎么验< / a > < a href = "09-security.html#sec-9-3" > 前端可见的敏感信息< / a > < a href = "09-security.html#sec-9-4" > 前端校验不是安全边界< / a > < a href = "09-security.html#sec-9-5" > 安全问题的证据与提交方式< / a > < / div >
< / li >
< li class = "chap-item" >
< div class = "ci-head" >
< span class = "ci-no" > 10< / span >
< a class = "ci-title" href = "10-tracking.html" > 埋点、开关与灰度< / a >
< a class = "ci-go" href = "10-tracking.html" > 进入 →< / a >
< / div >
< div class = "ci-secs" > < a href = "10-tracking.html#sec-10-1" > 埋点是怎么发出去的< / a > < a href = "10-tracking.html#sec-10-2" > 埋点丢失的六种原因< / a > < a href = "10-tracking.html#sec-10-3" > 功能开关的生效链路< / a > < a href = "10-tracking.html#sec-10-4" > 灰度名单与分流规则怎么测< / a > < a href = "10-tracking.html#sec-10-5" > 数据不对时的归因顺序< / a > < / div >
< / li >
< li class = "chap-item" >
< div class = "ci-head" >
< span class = "ci-no" > 11< / span >
< a class = "ci-title" href = "11-lab.html" > 实操:复现三个「只在特定条件下出现」的前端缺陷< / a >
< a class = "ci-go" href = "11-lab.html" > 进入 →< / a >
< / div >
< div class = "ci-secs" > < a href = "11-lab.html#sec-11-1" > 任务说明与验收标准< / a > < a href = "11-lab.html#sec-11-2" > 缺陷一:缓存导致旧资源< / a > < a href = "11-lab.html#sec-11-3" > 缺陷二:异步渲染导致元素找不到< / a > < a href = "11-lab.html#sec-11-4" > 缺陷三: iframe 里的元素点不到< / a > < a href = "11-lab.html#sec-11-5" > 交付物模板:复现步骤 + 定位证据< / a > < / div >
< / li >
< li class = "chap-item" >
< div class = "ci-head" >
< span class = "ci-no" > 12< / span >
< a class = "ci-title" href = "12-cheat.html" > 速查表与高频坑< / a >
< a class = "ci-go" href = "12-cheat.html" > 进入 →< / a >
< / div >
< div class = "ci-secs" > < a href = "12-cheat.html#sec-12-1" > DevTools 速查< / a > < a href = "12-cheat.html#sec-12-2" > 高频坑清单< / a > < / div >
< / li >
< li class = "chap-item" >
< div class = "ci-head" >
< span class = "ci-no" > 13< / span >
< a class = "ci-title" href = "13-checklist.html" > 完成标准与自测< / a >
< a class = "ci-go" href = "13-checklist.html" > 进入 →< / a >
< / div >
< div class = "ci-secs" > < a href = "13-checklist.html#sec-13-1" > 自测题< / a > < a href = "13-checklist.html#sec-13-2" > 验收清单< / a > < / div >
< / li >
< / ol >
< div class = "box tip" >
< span class = "bt" > 怎么用这一模块< / span >
< p > 左侧第一栏是< b > 章节< / b > ,可以在整章之间跳转;第二栏是< b > 本章小节< / b > ,进入某章后会显示该章的内容大纲并跟随滚动高亮。< / p >
< p > 每章结尾都可以用底部的「上一章 / 下一章」连续阅读。每章内部的代码块右上角可以直接复制,点顶栏的「深色 / 浅色」可以切换主题。< / p >
< / div >
< / article >
< nav class = "pager" >
< a class = "prev" href = "../s1-02-http-api/index.html" > < span class = "k" > ← 上一模块< / span > < span class = "v" > HTTP 接口与接口测试基础< / span > < / a >
< a class = "next" href = "../s1-04-defect-process/index.html" > < span class = "k" > 下一模块 →< / span > < span class = "v" > 缺陷管理与测试流程< / span > < / a >
< / nav >
< p class = "foot" >
Web 前端基础与调试 · 模块目录< br >
< a href = "../../index.html" > 返回学习路径< / a >
< / p >
< / main >
< / div >
< button id = "toTop" title = "回到顶部" > ↑< / button >
< script src = "../../assets/doc.js" > < / script >
< script src = "../../../../assets/back.js" data-portal-back = "testdev/testdev-learning-path" data-portal-label = "测试开发工程师 › 测试开发从零到成熟学习路径" > < / script >
< / body >
< / html >