[{"data":1,"prerenderedAt":4773},["ShallowReactive",2],{"navigation":3,"/document/kubernetes/management/gateway-api":2685,"/document/kubernetes/management/gateway-api-surround":4768},[4],{"title":5,"path":6,"stem":7,"children":8,"page":50},"Document","/document","document",[9,51,118,150,207,263,307,343,363,403,447,479,518,558,585,609,633,665,700,731,762,794,831,863,899,929,964,1000,1036,1075,1145,1233,1265,1296,1327,1355,1432,1472,1504,1544,1581,1613,1645,1742,1828,1901,1959,2101,2155,2194,2263,2317,2391,2462,2502,2560,2622],{"title":10,"path":11,"stem":12,"children":13,"page":50},"Html5","/document/html5","document/01.html5",[14,42],{"title":15,"path":16,"stem":17,"children":18,"icon":41},"指南","/document/html5/guide","document/01.html5/01.guide/01.index",[19,21,25,29,33,37],{"title":20,"path":16,"stem":17},"HTML 入门教程",{"title":22,"path":23,"stem":24},"常用标签详解","/document/html5/guide/tag","document/01.html5/01.guide/02.tag",{"title":26,"path":27,"stem":28},"布局与语义标签","/document/html5/guide/layout","document/01.html5/01.guide/03.layout",{"title":30,"path":31,"stem":32},"表单设计与用户输入","/document/html5/guide/form","document/01.html5/01.guide/04.form",{"title":34,"path":35,"stem":36},"多媒体与 HTML5 新特性","/document/html5/guide/html5","document/01.html5/01.guide/05.html5",{"title":38,"path":39,"stem":40},"Web 标准与 HTML 编写规范","/document/html5/guide/web","document/01.html5/01.guide/06.web","i-lucide-code",{"title":43,"path":44,"stem":45,"children":46,"icon":49},"考核","/document/html5/examine","document/01.html5/02.examine/01.index",[47],{"title":48,"path":44,"stem":45},"接下来对你进行考核","i-lucide-clipboard-check",false,{"title":52,"path":53,"stem":54,"children":55,"page":50},"Css","/document/css","document/02.css",[56,75,100,113],{"title":57,"path":58,"stem":59,"children":60,"icon":50},"启航","/document/css/guide","document/02.css/01.guide/01.index",[61,63,67,71],{"title":62,"path":58,"stem":59},"CSS 基础入门教程",{"title":64,"path":65,"stem":66},"文本与盒子样式详解","/document/css/guide/styles","document/02.css/01.guide/02.styles",{"title":68,"path":69,"stem":70},"选择器与权重机制","/document/css/guide/selected","document/02.css/01.guide/03.selected",{"title":72,"path":73,"stem":74},"盒模型详解","/document/css/guide/box","document/02.css/01.guide/04.box",{"title":76,"icon":50,"path":77,"stem":78,"children":79,"page":50},"布局","/document/css/layout","document/02.css/02.layout",[80,84,88,92,96],{"title":81,"path":82,"stem":83},"网页布局三剑客详解","/document/css/layout/policy","document/02.css/02.layout/01.policy",{"title":85,"path":86,"stem":87},"Position 定位详解","/document/css/layout/position","document/02.css/02.layout/02.position",{"title":89,"path":90,"stem":91},"Flexbox 布局入门指南","/document/css/layout/flex","document/02.css/02.layout/03.flex",{"title":93,"path":94,"stem":95},"Grid 布局入门指南","/document/css/layout/grid","document/02.css/02.layout/04.grid",{"title":97,"path":98,"stem":99},"响应式设计指南","/document/css/layout/relative","document/02.css/02.layout/05.relative",{"title":101,"icon":50,"path":102,"stem":103,"children":104,"page":50},"使用技巧","/document/css/skill","document/02.css/03.skill",[105,109],{"title":106,"path":107,"stem":108},"CSS 动画全解析","/document/css/skill/animation","document/02.css/03.skill/01.animation",{"title":110,"path":111,"stem":112},"CSS 使用技巧全攻略","/document/css/skill/skill","document/02.css/03.skill/02.skill",{"title":43,"path":114,"stem":115,"children":116,"icon":49},"/document/css/examine","document/02.css/04.examine/01.index",[117],{"title":48,"path":114,"stem":115},{"title":119,"path":120,"stem":121,"children":122,"page":50},"Git","/document/git","document/03.git",[123,145],{"title":57,"path":124,"stem":125,"children":126,"icon":50},"/document/git/guide","document/03.git/01.guide/01.index",[127,129,133,137,141],{"title":128,"path":124,"stem":125},"Git 入门指南",{"title":130,"path":131,"stem":132},"Git 安装与初体验","/document/git/guide/install","document/03.git/01.guide/02.install",{"title":134,"path":135,"stem":136},"常用 Git 命令详解","/document/git/guide/command","document/03.git/01.guide/03.command",{"title":138,"path":139,"stem":140},"Git 分支管理全解析","/document/git/guide/branch","document/03.git/01.guide/04.branch",{"title":142,"path":143,"stem":144},"使用 GitHub 轻松托管和管理代码","/document/git/guide/github","document/03.git/01.guide/05.github",{"title":43,"path":146,"stem":147,"children":148,"icon":49},"/document/git/examine","document/03.git/02.examine/01.index",[149],{"title":48,"path":146,"stem":147},{"title":151,"path":152,"stem":153,"children":154,"page":50},"Js Base","/document/js-base","document/04.js-base",[155,185,202],{"title":15,"path":156,"stem":157,"children":158,"icon":41},"/document/js-base/guide","document/04.js-base/01.guide/01.index",[159,161,165,169,173,177,181],{"title":160,"path":156,"stem":157},"JavaScript 基础快速入门",{"title":162,"path":163,"stem":164},"搞懂变量与数据类型","/document/js-base/guide/variable","document/04.js-base/01.guide/02.variable",{"title":166,"path":167,"stem":168},"JavaScript 运算符详解","/document/js-base/guide/operator","document/04.js-base/01.guide/03.operator",{"title":170,"path":171,"stem":172},"条件判断与循环语句","/document/js-base/guide/flow","document/04.js-base/01.guide/04.flow",{"title":174,"path":175,"stem":176},"深入理解 JavaScript 函数","/document/js-base/guide/function","document/04.js-base/01.guide/05.function",{"title":178,"path":179,"stem":180},"对象数组的创建与操作","/document/js-base/guide/object","document/04.js-base/01.guide/06.object",{"title":182,"path":183,"stem":184},"Math 和 Date 用法详解","/document/js-base/guide/math","document/04.js-base/01.guide/07.math",{"title":186,"icon":41,"path":187,"stem":188,"children":189,"page":50},"浏览器","/document/js-base/browser","document/04.js-base/02.browser",[190,194,198],{"title":191,"path":192,"stem":193},"DOM 操作入门与实战","/document/js-base/browser/dom","document/04.js-base/02.browser/01.dom",{"title":195,"path":196,"stem":197},"浏览器 BOM 基础知识","/document/js-base/browser/bom","document/04.js-base/02.browser/02.bom",{"title":199,"path":200,"stem":201},"JavaScript 事件处理机制","/document/js-base/browser/event","document/04.js-base/02.browser/03.event",{"title":43,"path":203,"stem":204,"children":205,"icon":49},"/document/js-base/examine","document/04.js-base/03.examine/01.index",[206],{"title":48,"path":203,"stem":204},{"title":208,"path":209,"stem":210,"children":211,"page":50},"Js Advanced","/document/js-advanced","document/05.js-advanced",[212,231,249],{"title":213,"path":214,"stem":215,"children":216,"icon":41},"JavaScript 原理","/document/js-advanced/guide","document/05.js-advanced/01.guide/01.index",[217,219,223,227],{"title":218,"path":214,"stem":215},"JavaScript 是怎么运行的？",{"title":220,"path":221,"stem":222},"深入理解函数和作用域","/document/js-advanced/guide/function","document/05.js-advanced/01.guide/02.function",{"title":224,"path":225,"stem":226},"深入理解 this 指向","/document/js-advanced/guide/this","document/05.js-advanced/01.guide/03.this",{"title":228,"path":229,"stem":230},"浅拷贝与深拷贝详解","/document/js-advanced/guide/copy","document/05.js-advanced/01.guide/04.copy",{"title":232,"icon":233,"path":234,"stem":235,"children":236,"page":50},"编程范式","i-lucide-shapes","/document/js-advanced/program","document/05.js-advanced/02.program",[237,241,245],{"title":238,"path":239,"stem":240},"面向对象编程（OOP）","/document/js-advanced/program/object","document/05.js-advanced/02.program/01.object",{"title":242,"path":243,"stem":244},"函数式编程入门","/document/js-advanced/program/fp","document/05.js-advanced/02.program/02.fp",{"title":246,"path":247,"stem":248},"防抖和节流详解","/document/js-advanced/program/debounce","document/05.js-advanced/02.program/03.debounce",{"title":250,"icon":251,"path":252,"stem":253,"children":254,"page":50},"浏览器相关特性","i-lucide-monitor","/document/js-advanced/browser","document/05.js-advanced/03.browser",[255,259],{"title":256,"path":257,"stem":258},"浏览器缓存入门指南","/document/js-advanced/browser/cache","document/05.js-advanced/03.browser/01.cache",{"title":260,"path":261,"stem":262},"Web 存储机制深度剖析","/document/js-advanced/browser/storage","document/05.js-advanced/03.browser/02.storage",{"title":264,"path":265,"stem":266,"children":267,"page":50},"Es6","/document/es6","document/06.es6",[268,302],{"title":213,"path":269,"stem":270,"children":271,"icon":41},"/document/es6/guide","document/06.es6/01.guide/01.index",[272,274,278,282,286,290,294,298],{"title":273,"path":269,"stem":270},"ES6 入门指南",{"title":275,"path":276,"stem":277},"变量声明：let 与 const","/document/es6/guide/const","document/06.es6/01.guide/02.const",{"title":279,"path":280,"stem":281},"箭头函数的用法与特点","/document/es6/guide/arrow","document/06.es6/01.guide/03.arrow",{"title":283,"path":284,"stem":285},"字符串、对象与数组的新特性","/document/es6/guide/enhance","document/06.es6/01.guide/04.enhance",{"title":287,"path":288,"stem":289},"Map 和 Set 的使用方式","/document/es6/guide/set","document/06.es6/01.guide/05.set",{"title":291,"path":292,"stem":293},"Promise 实现异步流程控制","/document/es6/guide/promise","document/06.es6/01.guide/06.promise",{"title":295,"path":296,"stem":297},"ESM 模块化语法解析","/document/es6/guide/esm","document/06.es6/01.guide/07.esm",{"title":299,"path":300,"stem":301},"Class 的定义与继承机制","/document/es6/guide/class","document/06.es6/01.guide/08.class",{"title":43,"path":303,"stem":304,"children":305,"icon":49},"/document/es6/examine","document/06.es6/02.examine/01.index",[306],{"title":48,"path":303,"stem":304},{"title":308,"path":309,"stem":310,"children":311,"page":50},"Js Algorithms","/document/js-algorithms","document/07.js-algorithms",[312,338],{"title":15,"path":313,"stem":314,"children":315,"icon":41},"/document/js-algorithms/guide","document/07.js-algorithms/01.guide/01.index",[316,318,322,326,330,334],{"title":317,"path":313,"stem":314},"什么是数据结构和算法？",{"title":319,"path":320,"stem":321},"时间和空间复杂度","/document/js-algorithms/guide/complexity","document/07.js-algorithms/01.guide/02.complexity",{"title":323,"path":324,"stem":325},"数据结构","/document/js-algorithms/guide/structure","document/07.js-algorithms/01.guide/03.structure",{"title":327,"path":328,"stem":329},"算法","/document/js-algorithms/guide/algorithms","document/07.js-algorithms/01.guide/04.algorithms",{"title":331,"path":332,"stem":333},"算法思想","/document/js-algorithms/guide/heuristic","document/07.js-algorithms/01.guide/05.heuristic",{"title":335,"path":336,"stem":337},"深度优先与广度优先搜索","/document/js-algorithms/guide/search","document/07.js-algorithms/01.guide/06.search",{"title":43,"path":339,"stem":340,"children":341,"icon":49},"/document/js-algorithms/examine","document/07.js-algorithms/02.examine/01.index",[342],{"title":48,"path":339,"stem":340},{"title":344,"path":345,"stem":346,"children":347,"page":50},"Automation","/document/automation","document/08.automation",[348,358],{"title":15,"path":349,"stem":350,"children":351,"icon":41},"/document/automation/guide","document/08.automation/01.guide/01.index",[352,354],{"title":353,"path":349,"stem":350},"什么是前端工程化？",{"title":355,"path":356,"stem":357},"开始搭建工程化项目","/document/automation/guide/start","document/08.automation/01.guide/02.start",{"title":43,"path":359,"stem":360,"children":361,"icon":49},"/document/automation/examine","document/08.automation/02.examine/01.index",[362],{"title":48,"path":359,"stem":360},{"title":364,"path":365,"stem":366,"children":367,"page":50},"Webpack","/document/webpack","document/09.webpack",[368,398],{"title":15,"path":369,"stem":370,"children":371,"icon":41},"/document/webpack/guide","document/09.webpack/01.guide/01.index",[372,374,378,382,386,390,394],{"title":373,"path":369,"stem":370},"Webpack 初识",{"title":375,"path":376,"stem":377},"搭建 Webpack 项目","/document/webpack/guide/start","document/09.webpack/01.guide/02.start",{"title":379,"path":380,"stem":381},"Loader 加载器","/document/webpack/guide/loader","document/09.webpack/01.guide/03.loader",{"title":383,"path":384,"stem":385},"Plugin 插件","/document/webpack/guide/plugin","document/09.webpack/01.guide/04.plugin",{"title":387,"path":388,"stem":389},"HMR 热更新与开发模式","/document/webpack/guide/dev","document/09.webpack/01.guide/05.dev",{"title":391,"path":392,"stem":393},"性能优化配置","/document/webpack/guide/optimize","document/09.webpack/01.guide/06.optimize",{"title":395,"path":396,"stem":397},"webpack 生产环境构建全攻略","/document/webpack/guide/production","document/09.webpack/01.guide/07.production",{"title":43,"path":399,"stem":400,"children":401,"icon":49},"/document/webpack/examine","document/09.webpack/02.examine/01.index",[402],{"title":48,"path":399,"stem":400},{"title":404,"path":405,"stem":406,"children":407,"page":50},"Scss","/document/scss","document/10.scss",[408,442],{"title":15,"path":409,"stem":410,"children":411,"icon":41},"/document/scss/guide","document/10.scss/01.guide/01.index",[412,414,418,422,426,430,434,438],{"title":413,"path":409,"stem":410},"什么是 SCSS？",{"title":415,"path":416,"stem":417},"SCSS 入门语法基础","/document/scss/guide/syntax","document/10.scss/01.guide/02.syntax",{"title":419,"path":420,"stem":421},"开始编写 Scss 项目","/document/scss/guide/start","document/10.scss/01.guide/03.start",{"title":423,"path":424,"stem":425},"Scss 模块导入方式","/document/scss/guide/import","document/10.scss/01.guide/04.import",{"title":427,"path":428,"stem":429},"Mixin 与函数详解","/document/scss/guide/mixin","document/10.scss/01.guide/05.mixin",{"title":431,"path":432,"stem":433},"Scss 继承、占位符技巧","/document/scss/guide/extend","document/10.scss/01.guide/06.extend",{"title":435,"path":436,"stem":437},"SCSS 流程控制与逻辑语法","/document/scss/guide/flow","document/10.scss/01.guide/07.flow",{"title":439,"path":440,"stem":441},"SCSS 内置函数","/document/scss/guide/function","document/10.scss/01.guide/08.function",{"title":43,"path":443,"stem":444,"children":445,"icon":49},"/document/scss/examine","document/10.scss/02.examine/01.index",[446],{"title":48,"path":443,"stem":444},{"title":448,"path":449,"stem":450,"children":451,"page":50},"Eslint","/document/eslint","document/11.eslint",[452,474],{"title":15,"path":453,"stem":454,"children":455,"icon":41},"/document/eslint/guide","document/11.eslint/01.guide/01.index",[456,458,462,466,470],{"title":457,"path":453,"stem":454},"ESLint 是什么？",{"title":459,"path":460,"stem":461},"ESLint 安装与运行详解","/document/eslint/guide/install","document/11.eslint/01.guide/02.install",{"title":463,"path":464,"stem":465},"ESLint  规则介绍","/document/eslint/guide/rule","document/11.eslint/01.guide/03.rule",{"title":467,"path":468,"stem":469},"集成 ESLint 到 Webpack","/document/eslint/guide/webpack","document/11.eslint/01.guide/04.webpack",{"title":471,"path":472,"stem":473},"Plugins 和 Extends 使用","/document/eslint/guide/plugins","document/11.eslint/01.guide/05.plugins",{"title":43,"path":475,"stem":476,"children":477,"icon":49},"/document/eslint/examine","document/11.eslint/02.examine/01.index",[478],{"title":48,"path":475,"stem":476},{"title":480,"path":481,"stem":482,"children":483,"page":50},"Axios","/document/axios","document/12.axios",[484,494,513],{"title":15,"path":485,"stem":486,"children":487,"icon":41},"/document/axios/guide","document/12.axios/01.guide/01.index",[488,490],{"title":489,"path":485,"stem":486},"HTTP 协议与网络请求",{"title":491,"path":492,"stem":493},"使用 JavaScript 发起请求","/document/axios/guide/get","document/12.axios/01.guide/02.get",{"title":495,"path":496,"stem":497,"children":498,"icon":41},"axios 插件","/document/axios/axios","document/12.axios/02.axios/01.index",[499,501,505,509],{"title":500,"path":496,"stem":497},"Axios 入门",{"title":502,"path":503,"stem":504},"Axios 请求基础全面讲解","/document/axios/axios/start","document/12.axios/02.axios/02.start",{"title":506,"path":507,"stem":508},"Axios 高级使用技巧","/document/axios/axios/advenced","document/12.axios/02.axios/03.advenced",{"title":510,"path":511,"stem":512},"CORS 跨域解决方案","/document/axios/axios/cors","document/12.axios/02.axios/04.cors",{"title":43,"path":514,"stem":515,"children":516,"icon":49},"/document/axios/examine","document/12.axios/03.examine/01.index",[517],{"title":48,"path":514,"stem":515},{"title":519,"path":520,"stem":521,"children":522,"page":50},"Typescript","/document/typescript","document/13.typescript",[523,553],{"title":15,"path":524,"stem":525,"children":526,"icon":41},"/document/typescript/guide","document/13.typescript/01.guide/01.index",[527,529,533,537,541,545,549],{"title":528,"path":524,"stem":525},"TypeScript 简介与入门",{"title":530,"path":531,"stem":532},"类型系统基础","/document/typescript/guide/base","document/13.typescript/01.guide/02.base",{"title":534,"path":535,"stem":536},"类型组合与类型保护","/document/typescript/guide/compose","document/13.typescript/01.guide/03.compose",{"title":538,"path":539,"stem":540},"类与面向对象编程","/document/typescript/guide/class","document/13.typescript/01.guide/04.class",{"title":542,"path":543,"stem":544},"泛型与类型复用","/document/typescript/guide/generic","document/13.typescript/01.guide/05.generic",{"title":546,"path":547,"stem":548},"项目进阶与配置实战","/document/typescript/guide/config","document/13.typescript/01.guide/06.config",{"title":550,"path":551,"stem":552},"第三方库类型支持与声明","/document/typescript/guide/declare","document/13.typescript/01.guide/07.declare",{"title":43,"path":554,"stem":555,"children":556,"icon":49},"/document/typescript/examine","document/13.typescript/02.examine/01.index",[557],{"title":48,"path":554,"stem":555},{"title":559,"path":560,"stem":561,"children":562,"page":50},"Vue2","/document/vue2","document/14.vue2",[563],{"title":15,"path":564,"stem":565,"children":566,"icon":41},"/document/vue2/guide","document/14.vue2/01.guide/01.index",[567,569,573,577,581],{"title":568,"path":564,"stem":565},"Vue 2 入门与安装",{"title":570,"path":571,"stem":572},"模板语法与指令详解","/document/vue2/guide/directive","document/14.vue2/01.guide/02.directive",{"title":574,"path":575,"stem":576},"组件化开发基础","/document/vue2/guide/component","document/14.vue2/01.guide/03.component",{"title":578,"path":579,"stem":580},"计算属性与监听器","/document/vue2/guide/reactive","document/14.vue2/01.guide/04.reactive",{"title":582,"path":583,"stem":584},"生命周期钩子解析","/document/vue2/guide/hooks","document/14.vue2/01.guide/05.hooks",{"title":586,"path":587,"stem":588,"children":589,"page":50},"Router","/document/router","document/15.router",[590],{"title":591,"path":592,"stem":593,"children":594,"icon":41},"Vue Router 路由","/document/router/guide","document/15.router/01.guide/01.index",[595,597,601,605],{"title":596,"path":592,"stem":593},"Vue Router 入门",{"title":598,"path":599,"stem":600},"路由核心功能详解","/document/router/guide/routing","document/15.router/01.guide/02.routing",{"title":602,"path":603,"stem":604},"路由守卫钩子和元信息","/document/router/guide/hook","document/15.router/01.guide/03.hook",{"title":606,"path":607,"stem":608},"路由优化与懒加载","/document/router/guide/optimize","document/15.router/01.guide/04.optimize",{"title":610,"path":611,"stem":612,"children":613,"page":50},"Vuex","/document/vuex","document/16.vuex",[614],{"title":615,"path":616,"stem":617,"children":618,"icon":41},"Vuex 状态管理器","/document/vuex/guide","document/16.vuex/01.guide/01.index",[619,621,625,629],{"title":620,"path":616,"stem":617},"为什么要使用 Vuex？",{"title":622,"path":623,"stem":624},"快速上手 Vuex","/document/vuex/guide/start","document/16.vuex/01.guide/02.start",{"title":626,"path":627,"stem":628},"深入理解 Vuex 核心功能","/document/vuex/guide/core","document/16.vuex/01.guide/03.core",{"title":630,"path":631,"stem":632},"模块化与进阶用法","/document/vuex/guide/module","document/16.vuex/01.guide/04.module",{"title":634,"path":635,"stem":636,"children":637,"page":50},"Element Ui","/document/element-ui","document/17.element-ui",[638],{"title":639,"path":640,"stem":641,"children":642,"icon":41},"Element UI 组件库","/document/element-ui/guide","document/17.element-ui/01.guide/01.index",[643,645,649,653,657,661],{"title":644,"path":640,"stem":641},"Element UI 初体验",{"title":646,"path":647,"stem":648},"常用组件快速上手","/document/element-ui/guide/quickstart","document/17.element-ui/01.guide/02.quickstart",{"title":650,"path":651,"stem":652},"布局与结构类组件","/document/element-ui/guide/layout","document/17.element-ui/01.guide/03.layout",{"title":654,"path":655,"stem":656},"自定义组件样式","/document/element-ui/guide/style","document/17.element-ui/01.guide/04.style",{"title":658,"path":659,"stem":660},"组件封装与复用","/document/element-ui/guide/component","document/17.element-ui/01.guide/05.component",{"title":662,"path":663,"stem":664},"自定义主题色与深色模式","/document/element-ui/guide/theme","document/17.element-ui/01.guide/06.theme",{"title":666,"path":667,"stem":668,"children":669,"page":50},"Vue3","/document/vue3","document/18.vue3",[670],{"title":666,"path":671,"stem":672,"children":673,"icon":41},"/document/vue3/guide","document/18.vue3/01.guide/01.index",[674,676,680,684,688,692,696],{"title":675,"path":671,"stem":672},"Vue 3 概览与生态升级",{"title":677,"path":678,"stem":679},"组合式 API 入门指南","/document/vue3/guide/composition","document/18.vue3/01.guide/02.composition",{"title":681,"path":682,"stem":683},"组合式 API 逻辑抽离","/document/vue3/guide/composable","document/18.vue3/01.guide/03.composable",{"title":685,"path":686,"stem":687},"模板语法及新特性","/document/vue3/guide/features","document/18.vue3/01.guide/04.features",{"title":689,"path":690,"stem":691},"TypeScript 开发支持","/document/vue3/guide/typescript","document/18.vue3/01.guide/05.typescript",{"title":693,"path":694,"stem":695},"响应式系统原理与进阶 API","/document/vue3/guide/reactive","document/18.vue3/01.guide/06.reactive",{"title":697,"path":698,"stem":699},"Vue Router 4 路由实战","/document/vue3/guide/vue-router","document/18.vue3/01.guide/07.vue-router",{"title":701,"path":702,"stem":703,"children":704,"page":50},"Pinia","/document/pinia","document/19.pinia",[705],{"title":701,"path":706,"stem":707,"children":708,"icon":41},"/document/pinia/guide","document/19.pinia/01.guide/01.index",[709,711,715,719,723,727],{"title":710,"path":706,"stem":707},"Pinia 简介与安装",{"title":712,"path":713,"stem":714},"Store 三大核心","/document/pinia/guide/store","document/19.pinia/01.guide/02.store",{"title":716,"path":717,"stem":718},"在组件中使用 Store","/document/pinia/guide/usage","document/19.pinia/01.guide/03.usage",{"title":720,"path":721,"stem":722},"State 修改与响应式细节","/document/pinia/guide/state","document/19.pinia/01.guide/04.state",{"title":724,"path":725,"stem":726},"Action 与异步操作","/document/pinia/guide/action","document/19.pinia/01.guide/05.action",{"title":728,"path":729,"stem":730},"组合、TypeScript 与插件","/document/pinia/guide/advanced","document/19.pinia/01.guide/06.advanced",{"title":732,"path":733,"stem":734,"children":735,"page":50},"Vite","/document/vite","document/20.vite",[736],{"title":732,"path":737,"stem":738,"children":739,"icon":41},"/document/vite/guide","document/20.vite/01.guide/01.index",[740,742,746,750,754,758],{"title":741,"path":737,"stem":738},"Vite 简介与安装",{"title":743,"path":744,"stem":745},"基础配置","/document/vite/guide/config","document/20.vite/01.guide/02.config",{"title":747,"path":748,"stem":749},"常用插件","/document/vite/guide/plugins","document/20.vite/01.guide/03.plugins",{"title":751,"path":752,"stem":753},"环境变量与模式","/document/vite/guide/env","document/20.vite/01.guide/04.env",{"title":755,"path":756,"stem":757},"依赖预构建","/document/vite/guide/optimize-deps","document/20.vite/01.guide/05.optimize-deps",{"title":759,"path":760,"stem":761},"构建与部署","/document/vite/guide/build-deploy","document/20.vite/01.guide/06.build-deploy",{"title":763,"path":764,"stem":765,"children":766,"page":50},"Nuxt","/document/nuxt","document/21.nuxt",[767],{"title":768,"path":769,"stem":770,"children":771,"icon":41},"Nuxt.js","/document/nuxt/guide","document/21.nuxt/01.guide/01.index",[772,774,778,782,786,790],{"title":773,"path":769,"stem":770},"Nuxt.js 简介与安装",{"title":775,"path":776,"stem":777},"目录约定与自动导入","/document/nuxt/guide/directory-and-auto-imports","document/21.nuxt/01.guide/02.directory-and-auto-imports",{"title":779,"path":780,"stem":781},"文件路由与导航","/document/nuxt/guide/routing","document/21.nuxt/01.guide/03.routing",{"title":783,"path":784,"stem":785},"数据获取","/document/nuxt/guide/data-fetching","document/21.nuxt/01.guide/04.data-fetching",{"title":787,"path":788,"stem":789},"状态管理","/document/nuxt/guide/state-management","document/21.nuxt/01.guide/05.state-management",{"title":791,"path":792,"stem":793},"配置与部署","/document/nuxt/guide/config-and-deploy","document/21.nuxt/01.guide/06.config-and-deploy",{"title":795,"path":796,"stem":797,"children":798,"page":50},"Npm","/document/npm","document/22.npm",[799],{"title":800,"path":801,"stem":802,"children":803,"icon":830},"NPM","/document/npm/guide","document/22.npm/01.guide/01.index",[804,806,810,814,818,822,826],{"title":805,"path":801,"stem":802},"NPM 入门",{"title":807,"path":808,"stem":809},"package.json 详解","/document/npm/guide/package-json","document/22.npm/01.guide/02.package-json",{"title":811,"path":812,"stem":813},"安装命令与版本","/document/npm/guide/install-commands","document/22.npm/01.guide/03.install-commands",{"title":815,"path":816,"stem":817},"scripts 与 npx","/document/npm/guide/scripts-and-npx","document/22.npm/01.guide/04.scripts-and-npx",{"title":819,"path":820,"stem":821},"发布包与镜像源","/document/npm/guide/publish-and-registry","document/22.npm/01.guide/05.publish-and-registry",{"title":823,"path":824,"stem":825},"lock 文件与清理","/document/npm/guide/lock-and-clean","document/22.npm/01.guide/06.lock-and-clean",{"title":827,"path":828,"stem":829},"Yarn 与 pnpm","/document/npm/guide/yarn-and-pnpm","document/22.npm/01.guide/07.yarn-and-pnpm","i-simple-icons-npm",{"title":832,"icon":833,"path":834,"stem":835,"children":836,"page":50},"Handlebars","i-simple-icons-handlebarsdotjs","/document/handlebars","document/23.handlebars",[837],{"title":838,"path":839,"stem":840,"children":841},"Handlebars 简介","/document/handlebars/guide","document/23.handlebars/01.guide/01.index",[842,843,847,851,855,859],{"title":838,"path":839,"stem":840},{"title":844,"path":845,"stem":846},"基本语法","/document/handlebars/guide/syntax","document/23.handlebars/01.guide/02.syntax",{"title":848,"path":849,"stem":850},"内置辅助函数","/document/handlebars/guide/builtins","document/23.handlebars/01.guide/03.builtins",{"title":852,"path":853,"stem":854},"模板复用","/document/handlebars/guide/partials","document/23.handlebars/01.guide/04.partials",{"title":856,"path":857,"stem":858},"自定义 Helpers","/document/handlebars/guide/helpers","document/23.handlebars/01.guide/05.helpers",{"title":860,"path":861,"stem":862},"预编译与运行时","/document/handlebars/guide/runtime","document/23.handlebars/01.guide/06.runtime",{"title":864,"icon":865,"path":866,"stem":867,"children":868,"page":50},"Plop","i-simple-icons-nodedotjs","/document/plop","document/24.plop",[869],{"title":870,"path":871,"stem":872,"children":873},"Plop 简介","/document/plop/guide","document/24.plop/01.guide/01.index",[874,875,879,883,887,891,895],{"title":870,"path":871,"stem":872},{"title":876,"path":877,"stem":878},"第一个生成器","/document/plop/guide/plopfile","document/24.plop/01.guide/02.plopfile",{"title":880,"path":881,"stem":882},"交互式询问","/document/plop/guide/prompts","document/24.plop/01.guide/03.prompts",{"title":884,"path":885,"stem":886},"核心动作","/document/plop/guide/actions","document/24.plop/01.guide/04.actions",{"title":888,"path":889,"stem":890},"模板文件组织","/document/plop/guide/templates","document/24.plop/01.guide/05.templates",{"title":892,"path":893,"stem":894},"Helper 扩展","/document/plop/guide/helpers","document/24.plop/01.guide/06.helpers",{"title":896,"path":897,"stem":898},"组件生成实战","/document/plop/guide/practice","document/24.plop/01.guide/07.practice",{"title":900,"icon":901,"path":902,"stem":903,"children":904,"page":50},"Rollup","i-simple-icons-rollupdotjs","/document/rollup","document/25.rollup",[905],{"title":906,"path":907,"stem":908,"children":909},"Rollup 简介","/document/rollup/guide","document/25.rollup/01.guide/01.index",[910,911,914,918,921,925],{"title":906,"path":907,"stem":908},{"title":743,"path":912,"stem":913},"/document/rollup/guide/config","document/25.rollup/01.guide/02.config",{"title":915,"path":916,"stem":917},"输出格式","/document/rollup/guide/formats","document/25.rollup/01.guide/03.formats",{"title":747,"path":919,"stem":920},"/document/rollup/guide/plugins","document/25.rollup/01.guide/04.plugins",{"title":922,"path":923,"stem":924},"Tree Shaking","/document/rollup/guide/tree-shaking","document/25.rollup/01.guide/05.tree-shaking",{"title":926,"path":927,"stem":928},"打包工具库实战","/document/rollup/guide/library","document/25.rollup/01.guide/06.library",{"title":930,"icon":865,"path":931,"stem":932,"children":933,"page":50},"Snabbdom","/document/snabbdom","document/26.snabbdom",[934],{"title":935,"path":936,"stem":937,"children":938},"Snabbdom 简介","/document/snabbdom/guide","document/26.snabbdom/01.guide/01.index",[939,940,944,948,952,956,960],{"title":935,"path":936,"stem":937},{"title":941,"path":942,"stem":943},"h 函数","/document/snabbdom/guide/h","document/26.snabbdom/01.guide/02.h",{"title":945,"path":946,"stem":947},"模块机制","/document/snabbdom/guide/modules","document/26.snabbdom/01.guide/03.modules",{"title":949,"path":950,"stem":951},"patch 渲染与更新","/document/snabbdom/guide/patch","document/26.snabbdom/01.guide/04.patch",{"title":953,"path":954,"stem":955},"key 的作用","/document/snabbdom/guide/key","document/26.snabbdom/01.guide/05.key",{"title":957,"path":958,"stem":959},"Diff 原理","/document/snabbdom/guide/diff","document/26.snabbdom/01.guide/06.diff",{"title":961,"path":962,"stem":963},"手写迷你虚拟 DOM","/document/snabbdom/guide/practice","document/26.snabbdom/01.guide/07.practice",{"title":965,"icon":966,"path":967,"stem":968,"children":969,"page":50},"Vercel","i-simple-icons-vercel","/document/vercel","document/27.vercel",[970],{"title":971,"path":972,"stem":973,"children":974},"Vercel 简介","/document/vercel/guide","document/27.vercel/01.guide/01.index",[975,976,980,984,988,992,996],{"title":971,"path":972,"stem":973},{"title":977,"path":978,"stem":979},"Vercel CLI","/document/vercel/guide/cli","document/27.vercel/01.guide/02.cli",{"title":981,"path":982,"stem":983},"项目设置与环境变量","/document/vercel/guide/settings","document/27.vercel/01.guide/03.settings",{"title":985,"path":986,"stem":987},"预览部署与回滚","/document/vercel/guide/preview","document/27.vercel/01.guide/04.preview",{"title":989,"path":990,"stem":991},"自定义域名","/document/vercel/guide/domain","document/27.vercel/01.guide/05.domain",{"title":993,"path":994,"stem":995},"vercel.json 配置","/document/vercel/guide/vercel-json","document/27.vercel/01.guide/06.vercel-json",{"title":997,"path":998,"stem":999},"Serverless Functions","/document/vercel/guide/serverless","document/27.vercel/01.guide/07.serverless",{"title":1001,"icon":1002,"path":1003,"stem":1004,"children":1005,"page":50},"ECharts","i-simple-icons-apacheecharts","/document/echarts","document/28.echarts",[1006],{"title":1007,"path":1008,"stem":1009,"children":1010},"ECharts 简介","/document/echarts/guide","document/28.echarts/01.guide/01.index",[1011,1012,1016,1020,1024,1028,1032],{"title":1007,"path":1008,"stem":1009},{"title":1013,"path":1014,"stem":1015},"核心配置项","/document/echarts/guide/option","document/28.echarts/01.guide/02.option",{"title":1017,"path":1018,"stem":1019},"常用图表类型","/document/echarts/guide/charts","document/28.echarts/01.guide/03.charts",{"title":1021,"path":1022,"stem":1023},"样式与主题","/document/echarts/guide/style","document/28.echarts/01.guide/04.style",{"title":1025,"path":1026,"stem":1027},"交互与事件","/document/echarts/guide/interaction","document/28.echarts/01.guide/05.interaction",{"title":1029,"path":1030,"stem":1031},"动态数据","/document/echarts/guide/data","document/28.echarts/01.guide/06.data",{"title":1033,"path":1034,"stem":1035},"Vue3 实战","/document/echarts/guide/vue","document/28.echarts/01.guide/07.vue",{"title":1037,"icon":1038,"path":1039,"stem":1040,"children":1041,"page":50},"D3","i-simple-icons-d3dotjs","/document/d3","document/29.d3",[1042],{"title":1043,"path":1044,"stem":1045,"children":1046},"D3 简介","/document/d3/guide","document/29.d3/01.guide/01.index",[1047,1048,1052,1056,1060,1064,1068,1072],{"title":1043,"path":1044,"stem":1045},{"title":1049,"path":1050,"stem":1051},"选择集与数据绑定","/document/d3/guide/selection","document/29.d3/01.guide/02.selection",{"title":1053,"path":1054,"stem":1055},"比例尺","/document/d3/guide/scale","document/29.d3/01.guide/03.scale",{"title":1057,"path":1058,"stem":1059},"坐标轴","/document/d3/guide/axis","document/29.d3/01.guide/04.axis",{"title":1061,"path":1062,"stem":1063},"图形生成器","/document/d3/guide/shape","document/29.d3/01.guide/05.shape",{"title":1065,"path":1066,"stem":1067},"过渡动画","/document/d3/guide/transition","document/29.d3/01.guide/06.transition",{"title":1069,"path":1070,"stem":1071},"交互与缩放","/document/d3/guide/interaction","document/29.d3/01.guide/07.interaction",{"title":1033,"path":1073,"stem":1074},"/document/d3/guide/vue","document/29.d3/01.guide/08.vue",{"title":1076,"icon":1077,"path":1078,"stem":1079,"children":1080,"page":50},"Three.js","i-simple-icons-threedotjs","/document/threejs","document/30.threejs",[1081,1095,1117,1135],{"title":1082,"path":1083,"stem":1084,"children":1085,"icon":1077},"Three.js 基础入门","/document/threejs/basics","document/30.threejs/01.basics/01.index",[1086,1087,1091],{"title":1082,"path":1083,"stem":1084},{"title":1088,"path":1089,"stem":1090},"物体变换","/document/threejs/basics/transform","document/30.threejs/01.basics/02.transform",{"title":1092,"path":1093,"stem":1094},"相机与视角","/document/threejs/basics/camera-controls","document/30.threejs/01.basics/03.camera-controls",{"title":1096,"icon":1097,"path":1098,"stem":1099,"children":1100,"page":50},"创建和组织三维场景","i-lucide-boxes","/document/threejs/scene","document/30.threejs/02.scene",[1101,1105,1109,1113],{"title":1102,"path":1103,"stem":1104},"Geometry 与 Mesh","/document/threejs/scene/geometry","document/30.threejs/02.scene/04.geometry",{"title":1106,"path":1107,"stem":1108},"材质与灯光","/document/threejs/scene/material-light","document/30.threejs/02.scene/05.material-light",{"title":1110,"path":1111,"stem":1112},"纹理与颜色空间","/document/threejs/scene/texture","document/30.threejs/02.scene/06.texture",{"title":1114,"path":1115,"stem":1116},"场景树与对象管理","/document/threejs/scene/scene-graph","document/30.threejs/02.scene/07.scene-graph",{"title":1118,"icon":1119,"path":1120,"stem":1121,"children":1122,"page":50},"模型、动画与交互","i-lucide-orbit","/document/threejs/model-interaction","document/30.threejs/03.model-interaction",[1123,1127,1131],{"title":1124,"path":1125,"stem":1126},"模型加载","/document/threejs/model-interaction/model-loading","document/30.threejs/03.model-interaction/08.model-loading",{"title":1128,"path":1129,"stem":1130},"动画循环","/document/threejs/model-interaction/animation-loop","document/30.threejs/03.model-interaction/09.animation-loop",{"title":1132,"path":1133,"stem":1134},"射线拾取与交互","/document/threejs/model-interaction/raycast-interaction","document/30.threejs/03.model-interaction/10.raycast-interaction",{"title":1136,"icon":1137,"path":1138,"stem":1139,"children":1140,"page":50},"工程化与性能","i-lucide-gauge","/document/threejs/engineering","document/30.threejs/04.engineering",[1141],{"title":1142,"path":1143,"stem":1144},"渲染器与性能","/document/threejs/engineering/renderer-performance","document/30.threejs/04.engineering/11.renderer-performance",{"title":1146,"icon":865,"path":1147,"stem":1148,"children":1149,"page":50},"Node.js 核心基础","/document/nodejs","document/32.nodejs",[1150,1165,1176,1211,1226],{"title":1151,"path":1152,"stem":1153,"children":1154},"Node.js 入门与运行环境","/document/nodejs/guide","document/32.nodejs/01.guide/01.index",[1155,1157,1161],{"title":1156,"path":1152,"stem":1153},"Node.js 简介与应用场景",{"title":1158,"path":1159,"stem":1160},"环境搭建","/document/nodejs/guide/setup","document/32.nodejs/01.guide/02.setup",{"title":1162,"path":1163,"stem":1164},"程序运行方式","/document/nodejs/guide/running","document/32.nodejs/01.guide/03.running",{"title":1166,"path":1167,"stem":1168,"children":1169},"Node.js 模块系统","/document/nodejs/modules","document/32.nodejs/02.modules/01.index",[1170,1172],{"title":1171,"path":1167,"stem":1168},"ESM 与 CommonJS",{"title":1173,"path":1174,"stem":1175},"模块加载机制","/document/nodejs/modules/loading","document/32.nodejs/02.modules/02.loading",{"title":1177,"path":1178,"stem":1179,"children":1180},"Node.js 核心内置模块","/document/nodejs/core","document/32.nodejs/03.core/01.index",[1181,1183,1187,1191,1195,1199,1203,1207],{"title":1182,"path":1178,"stem":1179},"path 路径处理",{"title":1184,"path":1185,"stem":1186},"fs 文件与目录","/document/nodejs/core/file-system","document/32.nodejs/03.core/02.file-system",{"title":1188,"path":1189,"stem":1190},"fs/promises 异步文件操作","/document/nodejs/core/fs-promises","document/32.nodejs/03.core/03.fs-promises",{"title":1192,"path":1193,"stem":1194},"Buffer 与字符编码","/document/nodejs/core/buffer","document/32.nodejs/03.core/04.buffer",{"title":1196,"path":1197,"stem":1198},"process 进程对象","/document/nodejs/core/process","document/32.nodejs/03.core/05.process",{"title":1200,"path":1201,"stem":1202},"events 事件模块","/document/nodejs/core/events","document/32.nodejs/03.core/06.events",{"title":1204,"path":1205,"stem":1206},"URL 与查询参数","/document/nodejs/core/url-query","document/32.nodejs/03.core/07.url-query",{"title":1208,"path":1209,"stem":1210},"crypto 常用能力","/document/nodejs/core/crypto","document/32.nodejs/03.core/08.crypto",{"title":1212,"path":1213,"stem":1214,"children":1215},"Node.js 异步 I/O 与运行机制","/document/nodejs/async","document/32.nodejs/04.async/01.index",[1216,1218,1222],{"title":1217,"path":1213,"stem":1214},"单线程与非阻塞 I/O",{"title":1219,"path":1220,"stem":1221},"事件循环","/document/nodejs/async/event-loop","document/32.nodejs/04.async/02.event-loop",{"title":1223,"path":1224,"stem":1225},"异步任务调度","/document/nodejs/async/scheduling","document/32.nodejs/04.async/03.scheduling",{"title":1227,"path":1228,"stem":1229,"children":1230},"Node.js Stream 与数据处理","/document/nodejs/streams","document/32.nodejs/05.streams/01.index",[1231],{"title":1232,"path":1228,"stem":1229},"Stream 数据处理",{"title":1234,"icon":1235,"path":1236,"stem":1237,"children":1238,"page":50},"Express","i-simple-icons-express","/document/express","document/33.express",[1239],{"title":1240,"path":1241,"stem":1242,"children":1243},"Express 简介","/document/express/guide","document/33.express/01.guide/01.index",[1244,1245,1249,1253,1257,1261],{"title":1240,"path":1241,"stem":1242},{"title":1246,"path":1247,"stem":1248},"路由","/document/express/guide/routing","document/33.express/01.guide/02.routing",{"title":1250,"path":1251,"stem":1252},"中间件","/document/express/guide/middleware","document/33.express/01.guide/03.middleware",{"title":1254,"path":1255,"stem":1256},"请求与响应","/document/express/guide/request-response","document/33.express/01.guide/04.request-response",{"title":1258,"path":1259,"stem":1260},"错误处理","/document/express/guide/error-handling","document/33.express/01.guide/05.error-handling",{"title":1262,"path":1263,"stem":1264},"RESTful 实战","/document/express/guide/restful-api","document/33.express/01.guide/06.restful-api",{"title":1266,"icon":1267,"path":1268,"stem":1269,"children":1270,"page":50},"Koa","i-simple-icons-koa","/document/koa","document/34.koa",[1271],{"title":1272,"path":1273,"stem":1274,"children":1275},"Koa 简介","/document/koa/guide","document/34.koa/01.guide/01.index",[1276,1277,1281,1285,1288,1292],{"title":1272,"path":1273,"stem":1274},{"title":1278,"path":1279,"stem":1280},"Context 上下文","/document/koa/guide/context","document/34.koa/01.guide/02.context",{"title":1282,"path":1283,"stem":1284},"中间件与洋葱模型","/document/koa/guide/middleware","document/34.koa/01.guide/03.middleware",{"title":1246,"path":1286,"stem":1287},"/document/koa/guide/routing","document/34.koa/01.guide/04.routing",{"title":1289,"path":1290,"stem":1291},"请求体与错误处理","/document/koa/guide/body-and-error","document/34.koa/01.guide/05.body-and-error",{"title":1293,"path":1294,"stem":1295},"RESTful 接口实战","/document/koa/guide/restful-api","document/34.koa/01.guide/06.restful-api",{"title":1297,"icon":1298,"path":1299,"stem":1300,"children":1301,"page":50},"Egg.js","i-lucide-egg","/document/egg","document/35.egg",[1302],{"title":1303,"path":1304,"stem":1305,"children":1306},"Egg.js 简介","/document/egg/guide","document/35.egg/01.guide/01.index",[1307,1308,1312,1316,1320,1324],{"title":1303,"path":1304,"stem":1305},{"title":1309,"path":1310,"stem":1311},"路由与 Controller","/document/egg/guide/router-controller","document/35.egg/01.guide/02.router-controller",{"title":1313,"path":1314,"stem":1315},"Service 业务逻辑","/document/egg/guide/service","document/35.egg/01.guide/03.service",{"title":1317,"path":1318,"stem":1319},"配置与中间件","/document/egg/guide/config-middleware","document/35.egg/01.guide/04.config-middleware",{"title":1321,"path":1322,"stem":1323},"插件与扩展","/document/egg/guide/plugin-extend","document/35.egg/01.guide/05.plugin-extend",{"title":1293,"path":1325,"stem":1326},"/document/egg/guide/restful-api","document/35.egg/01.guide/06.restful-api",{"title":1328,"icon":1329,"path":1330,"stem":1331,"children":1332,"page":50},"Docker","i-simple-icons-docker","/document/docker","document/36.docker",[1333],{"title":1334,"path":1335,"stem":1336,"children":1337},"Docker 简介","/document/docker/guide","document/36.docker/01.guide/01.index",[1338,1339,1343,1347,1351],{"title":1334,"path":1335,"stem":1336},{"title":1340,"path":1341,"stem":1342},"镜像与容器","/document/docker/guide/image-container","document/36.docker/01.guide/02.image-container",{"title":1344,"path":1345,"stem":1346},"数据卷","/document/docker/guide/volume","document/36.docker/01.guide/03.volume",{"title":1348,"path":1349,"stem":1350},"Dockerfile","/document/docker/guide/dockerfile","document/36.docker/01.guide/04.dockerfile",{"title":1352,"path":1353,"stem":1354},"Docker Compose","/document/docker/guide/docker-compose","document/36.docker/01.guide/05.docker-compose",{"title":1356,"icon":1357,"path":1358,"stem":1359,"children":1360,"page":50},"MySQL","i-simple-icons-mysql","/document/mysql","document/37.mysql",[1361,1376,1395,1410,1421],{"title":1362,"path":1363,"stem":1364,"children":1365},"基础入门","/document/mysql/guide","document/37.mysql/01.guide/01.index",[1366,1368,1372],{"title":1367,"path":1363,"stem":1364},"MySQL 入门",{"title":1369,"path":1370,"stem":1371},"建库与增删改","/document/mysql/guide/crud","document/37.mysql/01.guide/02.crud",{"title":1373,"path":1374,"stem":1375},"类型与约束","/document/mysql/guide/data-type","document/37.mysql/01.guide/03.data-type",{"title":1377,"path":1378,"stem":1379,"children":1380},"查询与统计","/document/mysql/query","document/37.mysql/02.query/01.index",[1381,1383,1387,1391],{"title":1382,"path":1378,"stem":1379},"条件查询与分页",{"title":1384,"path":1385,"stem":1386},"分组与统计","/document/mysql/query/aggregate","document/37.mysql/02.query/02.aggregate",{"title":1388,"path":1389,"stem":1390},"多表关联","/document/mysql/query/join","document/37.mysql/02.query/03.join",{"title":1392,"path":1393,"stem":1394},"子查询与分组排名","/document/mysql/query/subqueries","document/37.mysql/02.query/04.subqueries",{"title":1396,"path":1397,"stem":1398,"children":1399},"表设计与事务","/document/mysql/reliability","document/37.mysql/03.reliability/01.index",[1400,1402,1406],{"title":1401,"path":1397,"stem":1398},"关系设计",{"title":1403,"path":1404,"stem":1405},"事务与回滚","/document/mysql/reliability/transactions","document/37.mysql/03.reliability/02.transactions",{"title":1407,"path":1408,"stem":1409},"并发与锁","/document/mysql/reliability/concurrency","document/37.mysql/03.reliability/03.concurrency",{"title":1411,"path":1412,"stem":1413,"children":1414},"索引与性能","/document/mysql/performance","document/37.mysql/04.performance/01.index",[1415,1417],{"title":1416,"path":1412,"stem":1413},"索引设计",{"title":1418,"path":1419,"stem":1420},"执行计划与优化","/document/mysql/performance/explain","document/37.mysql/04.performance/02.explain",{"title":1422,"path":1423,"stem":1424,"children":1425},"项目接入与维护","/document/mysql/engineering","document/37.mysql/05.engineering/01.index",[1426,1428],{"title":1427,"path":1423,"stem":1424},"Node.js 接入",{"title":1429,"path":1430,"stem":1431},"备份与恢复","/document/mysql/engineering/backup","document/37.mysql/05.engineering/02.backup",{"title":1433,"icon":1434,"path":1435,"stem":1436,"children":1437,"page":50},"MongoDB","i-simple-icons-mongodb","/document/mongodb","document/38.mongodb",[1438],{"title":1439,"path":1440,"stem":1441,"children":1442},"MongoDB 简介","/document/mongodb/guide","document/38.mongodb/01.guide/01.index",[1443,1444,1448,1452,1456,1460,1464,1468],{"title":1439,"path":1440,"stem":1441},{"title":1445,"path":1446,"stem":1447},"增删改查","/document/mongodb/guide/crud","document/38.mongodb/01.guide/02.crud",{"title":1449,"path":1450,"stem":1451},"条件查询","/document/mongodb/guide/query","document/38.mongodb/01.guide/03.query",{"title":1453,"path":1454,"stem":1455},"文档与数据类型","/document/mongodb/guide/document","document/38.mongodb/01.guide/04.document",{"title":1457,"path":1458,"stem":1459},"Node.js 操作 MongoDB","/document/mongodb/guide/nodejs","document/38.mongodb/01.guide/05.nodejs",{"title":1461,"path":1462,"stem":1463},"Mongoose","/document/mongodb/guide/mongoose","document/38.mongodb/01.guide/06.mongoose",{"title":1465,"path":1466,"stem":1467},"索引","/document/mongodb/guide/optimize","document/38.mongodb/01.guide/07.optimize",{"title":1469,"path":1470,"stem":1471},"聚合管道","/document/mongodb/guide/aggregate","document/38.mongodb/01.guide/08.aggregate",{"title":1473,"icon":1474,"path":1475,"stem":1476,"children":1477,"page":50},"GraphQL","i-simple-icons-graphql","/document/graphql","document/39.graphql",[1478],{"title":1479,"path":1480,"stem":1481,"children":1482},"GraphQL 简介","/document/graphql/guide","document/39.graphql/01.guide/01.index",[1483,1484,1488,1492,1496,1500],{"title":1479,"path":1480,"stem":1481},{"title":1485,"path":1486,"stem":1487},"类型系统","/document/graphql/guide/schema","document/39.graphql/01.guide/02.schema",{"title":1489,"path":1490,"stem":1491},"查询进阶","/document/graphql/guide/query","document/39.graphql/01.guide/03.query",{"title":1493,"path":1494,"stem":1495},"Mutation 增删改","/document/graphql/guide/mutation","document/39.graphql/01.guide/04.mutation",{"title":1497,"path":1498,"stem":1499},"Express 集成","/document/graphql/guide/express","document/39.graphql/01.guide/05.express",{"title":1501,"path":1502,"stem":1503},"前端调用","/document/graphql/guide/client","document/39.graphql/01.guide/06.client",{"title":1505,"icon":1506,"path":1507,"stem":1508,"children":1509,"page":50},"Vue2 源码","i-simple-icons-vuedotjs","/document/source-vue2","document/40.source-vue2",[1510],{"title":1511,"path":1512,"stem":1513,"children":1514},"Vue2 源码简介","/document/source-vue2/guide","document/40.source-vue2/01.guide/01.index",[1515,1516,1520,1524,1528,1532,1536,1540],{"title":1511,"path":1512,"stem":1513},{"title":1517,"path":1518,"stem":1519},"初始化流程","/document/source-vue2/guide/init","document/40.source-vue2/01.guide/02.init",{"title":1521,"path":1522,"stem":1523},"响应式原理","/document/source-vue2/guide/reactive","document/40.source-vue2/01.guide/03.reactive",{"title":1525,"path":1526,"stem":1527},"Dep 与 Watcher","/document/source-vue2/guide/dep-watcher","document/40.source-vue2/01.guide/04.dep-watcher",{"title":1529,"path":1530,"stem":1531},"异步更新与 nextTick","/document/source-vue2/guide/nexttick","document/40.source-vue2/01.guide/05.nexttick",{"title":1533,"path":1534,"stem":1535},"虚拟 DOM 与 patch","/document/source-vue2/guide/vnode-patch","document/40.source-vue2/01.guide/06.vnode-patch",{"title":1537,"path":1538,"stem":1539},"模板编译","/document/source-vue2/guide/compile","document/40.source-vue2/01.guide/07.compile",{"title":1541,"path":1542,"stem":1543},"computed 与 watch 原理","/document/source-vue2/guide/computed-watch","document/40.source-vue2/01.guide/08.computed-watch",{"title":1545,"icon":1506,"path":1546,"stem":1547,"children":1548,"page":50},"Vue3 源码","/document/source-vue3","document/41.source-vue3",[1549],{"title":1550,"path":1551,"stem":1552,"children":1553},"Vue3 源码简介","/document/source-vue3/guide","document/41.source-vue3/01.guide/01.index",[1554,1555,1559,1563,1567,1571,1575,1578],{"title":1550,"path":1551,"stem":1552},{"title":1556,"path":1557,"stem":1558},"创建与挂载","/document/source-vue3/guide/create-app","document/41.source-vue3/01.guide/02.create-app",{"title":1560,"path":1561,"stem":1562},"Proxy 响应式","/document/source-vue3/guide/reactive","document/41.source-vue3/01.guide/03.reactive",{"title":1564,"path":1565,"stem":1566},"effect 与依赖收集","/document/source-vue3/guide/effect","document/41.source-vue3/01.guide/04.effect",{"title":1568,"path":1569,"stem":1570},"ref 与 computed","/document/source-vue3/guide/ref-computed","document/41.source-vue3/01.guide/05.ref-computed",{"title":1572,"path":1573,"stem":1574},"调度器与 nextTick","/document/source-vue3/guide/scheduler-nexttick","document/41.source-vue3/01.guide/06.scheduler-nexttick",{"title":1533,"path":1576,"stem":1577},"/document/source-vue3/guide/vnode-patch","document/41.source-vue3/01.guide/07.vnode-patch",{"title":1537,"path":1579,"stem":1580},"/document/source-vue3/guide/compile","document/41.source-vue3/01.guide/08.compile",{"title":1582,"icon":1583,"path":1584,"stem":1585,"children":1586,"page":50},"性能优化","i-lucide-zap","/document/performance","document/42.performance",[1587],{"title":1588,"path":1589,"stem":1590,"children":1591},"性能优化简介","/document/performance/guide","document/42.performance/01.guide/01.index",[1592,1593,1597,1601,1605,1609],{"title":1588,"path":1589,"stem":1590},{"title":1594,"path":1595,"stem":1596},"加载优化","/document/performance/guide/loading","document/42.performance/01.guide/02.loading",{"title":1598,"path":1599,"stem":1600},"渲染优化","/document/performance/guide/rendering","document/42.performance/01.guide/03.rendering",{"title":1602,"path":1603,"stem":1604},"缓存策略","/document/performance/guide/cache","document/42.performance/01.guide/04.cache",{"title":1606,"path":1607,"stem":1608},"构建产物优化","/document/performance/guide/build","document/42.performance/01.guide/05.build",{"title":1610,"path":1611,"stem":1612},"性能指标与工具","/document/performance/guide/metrics","document/42.performance/01.guide/06.metrics",{"title":1614,"icon":1615,"path":1616,"stem":1617,"children":1618,"page":50},"前端监控","i-lucide-activity","/document/monitor","document/43.monitor",[1619],{"title":1620,"path":1621,"stem":1622,"children":1623},"前端监控简介","/document/monitor/guide","document/43.monitor/01.guide/01.index",[1624,1625,1629,1633,1637,1641],{"title":1620,"path":1621,"stem":1622},{"title":1626,"path":1627,"stem":1628},"错误采集","/document/monitor/guide/error","document/43.monitor/01.guide/02.error",{"title":1630,"path":1631,"stem":1632},"埋点与上报","/document/monitor/guide/tracking","document/43.monitor/01.guide/03.tracking",{"title":1634,"path":1635,"stem":1636},"性能数据上报","/document/monitor/guide/performance-data","document/43.monitor/01.guide/04.performance-data",{"title":1638,"path":1639,"stem":1640},"Sentry 实践","/document/monitor/guide/sentry","document/43.monitor/01.guide/05.sentry",{"title":1642,"path":1643,"stem":1644},"日志与告警","/document/monitor/guide/logging","document/43.monitor/01.guide/06.logging",{"title":1646,"icon":1647,"path":1648,"stem":1649,"children":1650},"Electron：从入门到桌面应用交付","i-simple-icons-electron","/document/electron","document/44.electron/课程规划",[1651,1667,1685,1703,1720],{"title":1652,"path":1653,"stem":1654,"children":1655,"icon":1666},"基础架构","/document/electron/guide","document/44.electron/01.guide/01.index",[1656,1658,1662],{"title":1657,"path":1653,"stem":1654},"Electron 简介",{"title":1659,"path":1660,"stem":1661},"主进程、渲染进程与 preload","/document/electron/guide/process-model","document/44.electron/01.guide/02.process-model",{"title":1663,"path":1664,"stem":1665},"Electron 与 Vue 集成","/document/electron/guide/vue-integration","document/44.electron/01.guide/03.vue-integration","i-lucide-layers",{"title":1668,"icon":1669,"path":1670,"stem":1671,"children":1672,"page":50},"核心开发","i-lucide-code-2","/document/electron/core","document/44.electron/02.core",[1673,1677,1681],{"title":1674,"path":1675,"stem":1676},"创建窗口与应用生命周期","/document/electron/core/window-lifecycle","document/44.electron/02.core/04.window-lifecycle",{"title":1678,"path":1679,"stem":1680},"IPC 通信与接口设计","/document/electron/core/ipc-design","document/44.electron/02.core/05.ipc-design",{"title":1682,"path":1683,"stem":1684},"本地文件与系统交互","/document/electron/core/filesystem-system","document/44.electron/02.core/06.filesystem-system",{"title":1686,"icon":1687,"path":1688,"stem":1689,"children":1690,"page":50},"桌面能力与安全","i-lucide-monitor-cog","/document/electron/desktop","document/44.electron/03.desktop",[1691,1695,1699],{"title":1692,"path":1693,"stem":1694},"桌面端安全基础","/document/electron/desktop/security","document/44.electron/03.desktop/07.security",{"title":1696,"path":1697,"stem":1698},"菜单、托盘与多窗口","/document/electron/desktop/window-menu-tray","document/44.electron/03.desktop/08.window-menu-tray",{"title":1700,"path":1701,"stem":1702},"会话、网络与本地存储","/document/electron/desktop/session-storage","document/44.electron/03.desktop/09.session-storage",{"title":1704,"icon":1137,"path":1705,"stem":1706,"children":1707,"page":50},"资源、性能与导出","/document/electron/stability","document/44.electron/04.stability",[1708,1712,1716],{"title":1709,"path":1710,"stem":1711},"自定义协议、资源加载与深链接","/document/electron/stability/protocol-loading","document/44.electron/04.stability/10.protocol-loading",{"title":1713,"path":1714,"stem":1715},"耗时任务与性能排查","/document/electron/stability/tasks-performance","document/44.electron/04.stability/11.tasks-performance",{"title":1717,"path":1718,"stem":1719},"PDF 打印与报告导出","/document/electron/stability/pdf-report","document/44.electron/04.stability/12.pdf-report",{"title":1721,"icon":1722,"path":1723,"stem":1724,"children":1725,"page":50},"交付与实战","i-lucide-rocket","/document/electron/delivery","document/44.electron/05.delivery",[1726,1730,1734,1738],{"title":1727,"path":1728,"stem":1729},"应用打包与自动更新","/document/electron/delivery/package-update","document/44.electron/05.delivery/13.package-update",{"title":1731,"path":1732,"stem":1733},"桌面应用签名与公证","/document/electron/delivery/code-signing","document/44.electron/05.delivery/14.code-signing",{"title":1735,"path":1736,"stem":1737},"测试、监控与发布","/document/electron/delivery/test-monitor-release","document/44.electron/05.delivery/15.test-monitor-release",{"title":1739,"path":1740,"stem":1741},"实战：桌面资料管理工具","/document/electron/delivery/project-file-manager","document/44.electron/05.delivery/16.project-file-manager",{"title":1743,"icon":1744,"path":1745,"stem":1746,"children":1747,"page":50},"WebGIS","i-lucide-map","/document/webgis","document/45.webgis",[1748,1755,1768,1782,1800,1814],{"title":1749,"path":1750,"stem":1751,"children":1752,"icon":1744},"WebGIS 基础认知","/document/webgis/guide","document/45.webgis/01.guide/01.index",[1753],{"title":1754,"path":1750,"stem":1751},"WebGIS 全景",{"title":1756,"icon":233,"path":1757,"stem":1758,"children":1759,"page":50},"空间数据基础","/document/webgis/spatial","document/45.webgis/02.spatial",[1760,1764],{"title":1761,"path":1762,"stem":1763},"矢量与栅格","/document/webgis/spatial/vector-and-raster","document/45.webgis/02.spatial/02.vector-and-raster",{"title":1765,"path":1766,"stem":1767},"GeoJSON 与常见格式","/document/webgis/spatial/geojson-and-formats","document/45.webgis/02.spatial/03.geojson-and-formats",{"title":1769,"icon":1770,"path":1771,"stem":1772,"children":1773,"page":50},"坐标与地图投影","i-lucide-compass","/document/webgis/coordinate","document/45.webgis/03.coordinate",[1774,1778],{"title":1775,"path":1776,"stem":1777},"CRS 与地图投影","/document/webgis/coordinate/coordinate-reference-systems","document/45.webgis/03.coordinate/04.coordinate-reference-systems",{"title":1779,"path":1780,"stem":1781},"坐标转换与偏移","/document/webgis/coordinate/coordinate-offset","document/45.webgis/03.coordinate/05.coordinate-offset",{"title":1783,"icon":1784,"path":1785,"stem":1786,"children":1787,"page":50},"瓦片与地图服务","i-lucide-grid-2x2","/document/webgis/tiles","document/45.webgis/04.tiles",[1788,1792,1796],{"title":1789,"path":1790,"stem":1791},"地图瓦片","/document/webgis/tiles/map-tiles","document/45.webgis/04.tiles/06.map-tiles",{"title":1793,"path":1794,"stem":1795},"栅格与矢量瓦片","/document/webgis/tiles/raster-and-vector-tiles","document/45.webgis/04.tiles/07.raster-and-vector-tiles",{"title":1797,"path":1798,"stem":1799},"地图服务与 OGC","/document/webgis/tiles/map-services","document/45.webgis/04.tiles/08.map-services",{"title":1801,"icon":1802,"path":1803,"stem":1804,"children":1805,"page":50},"空间查询与分析","i-lucide-search","/document/webgis/analysis","document/45.webgis/05.analysis",[1806,1810],{"title":1807,"path":1808,"stem":1809},"空间查询与空间关系","/document/webgis/analysis/spatial-relationships","document/45.webgis/05.analysis/09.spatial-relationships",{"title":1811,"path":1812,"stem":1813},"距离、面积与空间分析","/document/webgis/analysis/distance-and-analysis","document/45.webgis/05.analysis/10.distance-and-analysis",{"title":1815,"icon":1816,"path":1817,"stem":1818,"children":1819,"page":50},"GIS 数据工程","i-lucide-database","/document/webgis/engineering","document/45.webgis/06.engineering",[1820,1824],{"title":1821,"path":1822,"stem":1823},"GIS 数据处理与清洗","/document/webgis/engineering/data-cleaning","document/45.webgis/06.engineering/11.data-cleaning",{"title":1825,"path":1826,"stem":1827},"海量数据展示","/document/webgis/engineering/large-data-display","document/45.webgis/06.engineering/12.large-data-display",{"title":1829,"icon":1830,"path":1831,"stem":1832,"children":1833,"page":50},"Mapbox GL JS","i-simple-icons-mapbox","/document/mapbox-gl-js","document/46.mapbox-gl-js",[1834,1849,1875],{"title":1835,"path":1836,"stem":1837,"children":1838,"icon":1744},"地图基础","/document/mapbox-gl-js/start","document/46.mapbox-gl-js/01.start/01.index",[1839,1841,1845],{"title":1840,"path":1836,"stem":1837},"Mapbox GL JS 入门",{"title":1842,"path":1843,"stem":1844},"初始化与视角控制","/document/mapbox-gl-js/start/view-control","document/46.mapbox-gl-js/01.start/02.view-control",{"title":1846,"path":1847,"stem":1848},"地图事件与基础控件","/document/mapbox-gl-js/start/events-controls","document/46.mapbox-gl-js/01.start/03.events-controls",{"title":1850,"icon":1851,"path":1852,"stem":1853,"children":1854,"page":50},"数据与样式","i-lucide-layers-3","/document/mapbox-gl-js/data","document/46.mapbox-gl-js/02.data",[1855,1859,1863,1867,1871],{"title":1856,"path":1857,"stem":1858},"Source 与 Layer","/document/mapbox-gl-js/data/source-layer","document/46.mapbox-gl-js/02.data/04.source-layer",{"title":1860,"path":1861,"stem":1862},"GeoJSON 点线面","/document/mapbox-gl-js/data/geojson-features","document/46.mapbox-gl-js/02.data/05.geojson-features",{"title":1864,"path":1865,"stem":1866},"样式与表达式","/document/mapbox-gl-js/data/style-expressions","document/46.mapbox-gl-js/02.data/06.style-expressions",{"title":1868,"path":1869,"stem":1870},"Marker、Popup 与 Symbol","/document/mapbox-gl-js/data/marker-popup-symbol","document/46.mapbox-gl-js/02.data/07.marker-popup-symbol",{"title":1872,"path":1873,"stem":1874},"加载瓦片服务","/document/mapbox-gl-js/data/tile-services","document/46.mapbox-gl-js/02.data/08.tile-services",{"title":1876,"icon":1877,"path":1878,"stem":1879,"children":1880,"page":50},"业务交互","i-lucide-map-pinned","/document/mapbox-gl-js/business","document/46.mapbox-gl-js/03.business",[1881,1885,1889,1893,1897],{"title":1882,"path":1883,"stem":1884},"查询与高亮","/document/mapbox-gl-js/business/query-highlight","document/46.mapbox-gl-js/03.business/08.query-highlight",{"title":1886,"path":1887,"stem":1888},"筛选与图层管理","/document/mapbox-gl-js/business/filter-layers","document/46.mapbox-gl-js/03.business/09.filter-layers",{"title":1890,"path":1891,"stem":1892},"点聚合","/document/mapbox-gl-js/business/clusters","document/46.mapbox-gl-js/03.business/10.clusters",{"title":1894,"path":1895,"stem":1896},"绘制、编辑与测量","/document/mapbox-gl-js/business/draw-measure","document/46.mapbox-gl-js/03.business/11.draw-measure",{"title":1898,"path":1899,"stem":1900},"接入 Three.js","/document/mapbox-gl-js/business/three-in-mapbox","document/46.mapbox-gl-js/03.business/12.three-in-mapbox",{"title":1902,"icon":1851,"path":1903,"stem":1904,"children":1905,"page":50},"deck.gl","/document/deck-gl","document/47.deck-gl",[1906,1921,1938],{"title":1907,"path":1908,"stem":1909,"children":1910},"deck.gl 基础入门","/document/deck-gl/basics","document/47.deck-gl/01.basics/01.index",[1911,1913,1917],{"title":1912,"path":1908,"stem":1909},"deck.gl 简介",{"title":1914,"path":1915,"stem":1916},"Layer、Data 与 Accessor","/document/deck-gl/basics/layer-data-accessor","document/47.deck-gl/01.basics/02.layer-data-accessor",{"title":1918,"path":1919,"stem":1920},"常用基础图层","/document/deck-gl/basics/common-layers","document/47.deck-gl/01.basics/03.common-layers",{"title":1922,"path":1923,"stem":1924,"children":1925,"page":50},"地图交互与 Mapbox 集成","/document/deck-gl/interaction-mapbox","document/47.deck-gl/02.interaction-mapbox",[1926,1930,1934],{"title":1927,"path":1928,"stem":1929},"拾取与 Tooltip","/document/deck-gl/interaction-mapbox/picking-tooltip","document/47.deck-gl/02.interaction-mapbox/04.picking-tooltip",{"title":1931,"path":1932,"stem":1933},"坐标与单位","/document/deck-gl/interaction-mapbox/coordinates-units","document/47.deck-gl/02.interaction-mapbox/05.coordinates-units",{"title":1935,"path":1936,"stem":1937},"deck.gl 与 Mapbox","/document/deck-gl/interaction-mapbox/mapbox-integration","document/47.deck-gl/02.interaction-mapbox/06.mapbox-integration",{"title":1939,"path":1940,"stem":1941,"children":1942,"page":50},"动态数据与专题可视化","/document/deck-gl/dynamic-thematic","document/47.deck-gl/03.dynamic-thematic",[1943,1947,1951,1955],{"title":1944,"path":1945,"stem":1946},"Layer 更新与动态数据","/document/deck-gl/dynamic-thematic/layer-updates","document/47.deck-gl/03.dynamic-thematic/07.layer-updates",{"title":1948,"path":1949,"stem":1950},"聚合与专题地图","/document/deck-gl/dynamic-thematic/aggregation-thematic","document/47.deck-gl/03.dynamic-thematic/08.aggregation-thematic",{"title":1952,"path":1953,"stem":1954},"时间序列与轨迹动画","/document/deck-gl/dynamic-thematic/trips-animation","document/47.deck-gl/03.dynamic-thematic/09.trips-animation",{"title":1956,"path":1957,"stem":1958},"瓦片与大规模空间数据","/document/deck-gl/dynamic-thematic/tiles-large-data","document/47.deck-gl/03.dynamic-thematic/10.tiles-large-data",{"title":1960,"icon":865,"path":1961,"stem":1962,"children":1963,"page":50},"HTTP 与后端开发基础","/document/nodejs-backend","document/48.nodejs-backend",[1964,1984,2003,2022,2041,2060,2075,2090],{"title":1965,"path":1966,"stem":1967,"children":1968,"icon":1983},"后端开发基础认知","/document/nodejs-backend/guide","document/48.nodejs-backend/01.guide/01.index",[1969,1971,1975,1979],{"title":1970,"path":1966,"stem":1967},"前端与后端的区别",{"title":1972,"path":1973,"stem":1974},"HTTP / HTTPS 核心原理","/document/nodejs-backend/guide/http-https","document/48.nodejs-backend/01.guide/02.http-https",{"title":1976,"path":1977,"stem":1978},"Cookie、Session 与浏览器同源策略","/document/nodejs-backend/guide/cookies-origin","document/48.nodejs-backend/01.guide/03.cookies-origin",{"title":1980,"path":1981,"stem":1982},"从浏览器发起请求到服务端返回数据的完整过程","/document/nodejs-backend/guide/request-lifecycle","document/48.nodejs-backend/01.guide/04.request-lifecycle","i-lucide-book-open",{"title":1985,"path":1986,"stem":1987,"children":1988,"icon":1983},"Node.js HTTP 服务开发","/document/nodejs-backend/http","document/48.nodejs-backend/02.http/01.index",[1989,1991,1995,1999],{"title":1990,"path":1986,"stem":1987},"使用原生 Node.js 创建 HTTP 服务器",{"title":1992,"path":1993,"stem":1994},"HTTP 请求解析","/document/nodejs-backend/http/request","document/48.nodejs-backend/02.http/02.request",{"title":1996,"path":1997,"stem":1998},"HTTP 响应处理","/document/nodejs-backend/http/response","document/48.nodejs-backend/02.http/03.response",{"title":2000,"path":2001,"stem":2002},"路由匹配与请求处理流程","/document/nodejs-backend/http/routing","document/48.nodejs-backend/02.http/04.routing",{"title":2004,"path":2005,"stem":2006,"children":2007,"icon":1983},"RESTful API 接口设计","/document/nodejs-backend/api","document/48.nodejs-backend/03.api/01.index",[2008,2010,2014,2018],{"title":2009,"path":2005,"stem":2006},"RESTful API 设计规范与 HTTP 请求方法",{"title":2011,"path":2012,"stem":2013},"接口参数校验与数据格式规范","/document/nodejs-backend/api/validation","document/48.nodejs-backend/03.api/02.validation",{"title":2015,"path":2016,"stem":2017},"统一响应格式、错误码与异常处理","/document/nodejs-backend/api/errors","document/48.nodejs-backend/03.api/03.errors",{"title":2019,"path":2020,"stem":2021},"API 版本管理、分页、筛选、排序与接口文档","/document/nodejs-backend/api/query-contract","document/48.nodejs-backend/03.api/04.query-contract",{"title":2023,"path":2024,"stem":2025,"children":2026,"icon":1983},"身份认证与权限控制","/document/nodejs-backend/auth","document/48.nodejs-backend/04.auth/01.index",[2027,2029,2033,2037],{"title":2028,"path":2024,"stem":2025},"身份认证与权限授权",{"title":2030,"path":2031,"stem":2032},"Session、JWT 与 Token 认证机制","/document/nodejs-backend/auth/session-jwt","document/48.nodejs-backend/04.auth/02.session-jwt",{"title":2034,"path":2035,"stem":2036},"Access Token、Refresh Token 与登录状态管理","/document/nodejs-backend/auth/token-lifecycle","document/48.nodejs-backend/04.auth/03.token-lifecycle",{"title":2038,"path":2039,"stem":2040},"RBAC 权限模型与接口级权限控制","/document/nodejs-backend/auth/rbac","document/48.nodejs-backend/04.auth/04.rbac",{"title":2042,"path":2043,"stem":2044,"children":2045,"icon":1983},"后端安全与风险防护","/document/nodejs-backend/security","document/48.nodejs-backend/05.security/01.index",[2046,2048,2052,2056],{"title":2047,"path":2043,"stem":2044},"CORS 跨域机制与跨域请求处理",{"title":2049,"path":2050,"stem":2051},"XSS、CSRF、SQL 注入与常见 Web 安全风险","/document/nodejs-backend/security/web-risks","document/48.nodejs-backend/05.security/02.web-risks",{"title":2053,"path":2054,"stem":2055},"密码安全","/document/nodejs-backend/security/passwords","document/48.nodejs-backend/05.security/03.passwords",{"title":2057,"path":2058,"stem":2059},"接口防护","/document/nodejs-backend/security/request-protection","document/48.nodejs-backend/05.security/04.request-protection",{"title":2061,"path":2062,"stem":2063,"children":2064,"icon":1983},"后端工程化与架构设计","/document/nodejs-backend/architecture","document/48.nodejs-backend/06.architecture/01.index",[2065,2067,2071],{"title":2066,"path":2062,"stem":2063},"后端项目目录结构与分层架构设计",{"title":2068,"path":2069,"stem":2070},"Controller、Service、Repository 的职责划分","/document/nodejs-backend/architecture/layers","document/48.nodejs-backend/06.architecture/02.layers",{"title":2072,"path":2073,"stem":2074},"环境变量、配置管理、日志与统一异常处理","/document/nodejs-backend/architecture/configuration-logging","document/48.nodejs-backend/06.architecture/03.configuration-logging",{"title":2076,"path":2077,"stem":2078,"children":2079,"icon":1983},"常见后端业务场景","/document/nodejs-backend/business","document/48.nodejs-backend/07.business/01.index",[2080,2082,2086],{"title":2081,"path":2077,"stem":2078},"文件上传、下载与静态资源访问",{"title":2083,"path":2084,"stem":2085},"邮件、验证码与第三方服务接口集成","/document/nodejs-backend/business/integrations","document/48.nodejs-backend/07.business/02.integrations",{"title":2087,"path":2088,"stem":2089},"WebSocket、SSE 与实时消息通信","/document/nodejs-backend/business/realtime","document/48.nodejs-backend/07.business/03.realtime",{"title":2091,"path":2092,"stem":2093,"children":2094,"icon":1983},"接口测试与部署基础","/document/nodejs-backend/delivery","document/48.nodejs-backend/08.delivery/01.index",[2095,2097],{"title":2096,"path":2092,"stem":2093},"使用 Postman / Apifox 调试接口与 Node.js 接口自动化测试",{"title":2098,"path":2099,"stem":2100},"Node.js 服务部署入门","/document/nodejs-backend/delivery/deployment","document/48.nodejs-backend/08.delivery/02.deployment",{"title":2102,"icon":2103,"path":2104,"stem":2105,"children":2106,"page":50},"Redis","i-simple-icons-redis","/document/redis","document/50.redis",[2107,2122,2137,2148],{"title":2108,"path":2109,"stem":2110,"children":2111},"Redis 基础与数据结构","/document/redis/guide","document/50.redis/01.guide/01.index",[2112,2114,2118],{"title":2113,"path":2109,"stem":2110},"简介与 Node.js 集成",{"title":2115,"path":2116,"stem":2117},"核心数据类型与常用操作","/document/redis/guide/data-types","document/50.redis/01.guide/02.data-types",{"title":2119,"path":2120,"stem":2121},"Key 管理与过期时间","/document/redis/guide/keys-expiration","document/50.redis/01.guide/03.keys-expiration",{"title":2123,"path":2124,"stem":2125,"children":2126},"Redis 核心机制","/document/redis/mechanisms","document/50.redis/02.mechanisms/01.index",[2127,2129,2133],{"title":2128,"path":2124,"stem":2125},"原子操作、事务与 Pipeline",{"title":2130,"path":2131,"stem":2132},"内存管理与淘汰策略","/document/redis/mechanisms/memory-eviction","document/50.redis/02.mechanisms/02.memory-eviction",{"title":2134,"path":2135,"stem":2136},"持久化机制","/document/redis/mechanisms/persistence","document/50.redis/02.mechanisms/03.persistence",{"title":2138,"path":2139,"stem":2140,"children":2141},"Redis 在 Node.js 中的应用","/document/redis/applications","document/50.redis/03.applications/01.index",[2142,2144],{"title":2143,"path":2139,"stem":2140},"实现数据缓存",{"title":2145,"path":2146,"stem":2147},"缓存常见问题与解决方案","/document/redis/applications/cache-protection","document/50.redis/03.applications/02.cache-protection",{"title":2149,"path":2150,"stem":2151,"children":2152},"Redis 生产实践","/document/redis/production","document/50.redis/04.production/01.index",[2153],{"title":2154,"path":2150,"stem":2151},"连接管理、安全与性能排查",{"title":2156,"icon":2157,"path":2158,"stem":2159,"children":2160,"page":50},"BullMQ","i-lucide-list-todo","/document/bullmq","document/51.bullmq",[2161,2172,2187],{"title":2162,"path":2163,"stem":2164,"children":2165},"BullMQ 基础","/document/bullmq/guide","document/51.bullmq/01.guide/01.index",[2166,2168],{"title":2167,"path":2163,"stem":2164},"简介与快速入门",{"title":2169,"path":2170,"stem":2171},"Queue、Worker 与 Job","/document/bullmq/guide/queue-worker-job","document/51.bullmq/01.guide/02.queue-worker-job",{"title":2173,"path":2174,"stem":2175,"children":2176},"任务调度与管理","/document/bullmq/scheduling","document/51.bullmq/02.scheduling/01.index",[2177,2179,2183],{"title":2178,"path":2174,"stem":2175},"延迟任务与定时任务",{"title":2180,"path":2181,"stem":2182},"任务并发与速率限制","/document/bullmq/scheduling/concurrency-rate-limiting","document/51.bullmq/02.scheduling/02.concurrency-rate-limiting",{"title":2184,"path":2185,"stem":2186},"任务状态、进度与事件监听","/document/bullmq/scheduling/status-progress-events","document/51.bullmq/02.scheduling/03.status-progress-events",{"title":2188,"path":2189,"stem":2190,"children":2191},"任务可靠性","/document/bullmq/reliability","document/51.bullmq/03.reliability/01.index",[2192],{"title":2193,"path":2189,"stem":2190},"任务失败重试与异常处理",{"title":2195,"icon":2196,"path":2197,"stem":2198,"children":2199,"page":50},"RabbitMQ","i-simple-icons-rabbitmq","/document/rabbitmq","document/52.rabbitmq",[2200,2218,2233,2252],{"title":1362,"path":2201,"stem":2202,"children":2203},"/document/rabbitmq/guide","document/52.rabbitmq/01.guide/01.index",[2204,2206,2210,2214],{"title":2205,"path":2201,"stem":2202},"RabbitMQ 简介",{"title":2207,"path":2208,"stem":2209},"安装与连接","/document/rabbitmq/guide/environment","document/52.rabbitmq/01.guide/02.environment",{"title":2211,"path":2212,"stem":2213},"发送和接收一条消息","/document/rabbitmq/guide/first-message","document/52.rabbitmq/01.guide/03.first-message",{"title":2215,"path":2216,"stem":2217},"消息正文与属性","/document/rabbitmq/guide/message-format","document/52.rabbitmq/01.guide/04.message-format",{"title":2219,"path":2220,"stem":2221,"children":2222},"交换机与路由","/document/rabbitmq/routing","document/52.rabbitmq/02.routing/01.index",[2223,2225,2229],{"title":2224,"path":2220,"stem":2221},"交换机与发布订阅",{"title":2226,"path":2227,"stem":2228},"Direct 交换机的精确路由","/document/rabbitmq/routing/direct","document/52.rabbitmq/02.routing/02.direct",{"title":2230,"path":2231,"stem":2232},"Topic 交换机的通配符路由","/document/rabbitmq/routing/topic","document/52.rabbitmq/02.routing/03.topic",{"title":2234,"path":2235,"stem":2236,"children":2237},"消息可靠性","/document/rabbitmq/reliability","document/52.rabbitmq/03.reliability/01.index",[2238,2240,2244,2248],{"title":2239,"path":2235,"stem":2236},"消息处理与消费确认",{"title":2241,"path":2242,"stem":2243},"发布确认与消息退回","/document/rabbitmq/reliability/publisher-confirms","document/52.rabbitmq/03.reliability/02.publisher-confirms",{"title":2245,"path":2246,"stem":2247},"队列与消息持久化","/document/rabbitmq/reliability/persistence","document/52.rabbitmq/03.reliability/03.persistence",{"title":2249,"path":2250,"stem":2251},"消费失败与死信处理","/document/rabbitmq/reliability/dead-letter","document/52.rabbitmq/03.reliability/04.dead-letter",{"title":2253,"path":2254,"stem":2255,"children":2256},"消费与运行管理","/document/rabbitmq/management","document/52.rabbitmq/04.management/01.index",[2257,2259],{"title":2258,"path":2254,"stem":2255},"多消费者与预取控制",{"title":2260,"path":2261,"stem":2262},"队列状态与故障排查","/document/rabbitmq/management/monitoring","document/52.rabbitmq/04.management/02.monitoring",{"title":2264,"icon":2265,"path":2266,"stem":2267,"children":2268,"page":50},"Socket.IO","i-simple-icons-socketdotio","/document/socket-io","document/53.socket-io",[2269,2284,2299,2310],{"title":2270,"path":2271,"stem":2272,"children":2273},"认识与消息收发","/document/socket-io/guide","document/53.socket-io/01.guide/01.index",[2274,2276,2280],{"title":2275,"path":2271,"stem":2272},"Socket.IO 简介与环境搭建",{"title":2277,"path":2278,"stem":2279},"事件发送与监听","/document/socket-io/guide/events","document/53.socket-io/01.guide/02.events",{"title":2281,"path":2282,"stem":2283},"消息确认与输入校验","/document/socket-io/guide/acknowledgements","document/53.socket-io/01.guide/03.acknowledgements",{"title":2285,"path":2286,"stem":2287,"children":2288},"广播、房间与认证","/document/socket-io/messaging","document/53.socket-io/02.messaging/01.index",[2289,2291,2295],{"title":2290,"path":2286,"stem":2287},"广播与消息接收范围",{"title":2292,"path":2293,"stem":2294},"房间加入与分组聊天","/document/socket-io/messaging/rooms","document/53.socket-io/02.messaging/02.rooms",{"title":2296,"path":2297,"stem":2298},"身份认证与房间权限","/document/socket-io/messaging/authentication","document/53.socket-io/02.messaging/03.authentication",{"title":2300,"path":2301,"stem":2302,"children":2303},"断线与消息补取","/document/socket-io/reliability","document/53.socket-io/03.reliability/01.index",[2304,2306],{"title":2305,"path":2301,"stem":2302},"断线重连与状态提示",{"title":2307,"path":2308,"stem":2309},"最近消息与断线补取","/document/socket-io/reliability/history","document/53.socket-io/03.reliability/02.history",{"title":2311,"path":2312,"stem":2313,"children":2314},"部署与故障排查","/document/socket-io/production","document/53.socket-io/04.production/01.index",[2315],{"title":2316,"path":2312,"stem":2313},"服务部署与常见故障排查",{"title":2318,"icon":2319,"path":2320,"stem":2321,"children":2322,"page":50},"Nginx","i-simple-icons-nginx","/document/nginx","document/55.nginx",[2323,2342,2361,2376],{"title":2324,"path":2325,"stem":2326,"children":2327},"认识与运行","/document/nginx/guide","document/55.nginx/01.guide/01.index",[2328,2330,2334,2338],{"title":2329,"path":2325,"stem":2326},"Nginx 课程概览",{"title":2331,"path":2332,"stem":2333},"安装与实验环境","/document/nginx/guide/install","document/55.nginx/01.guide/02.install",{"title":2335,"path":2336,"stem":2337},"配置结构","/document/nginx/guide/configuration","document/55.nginx/01.guide/03.configuration",{"title":2339,"path":2340,"stem":2341},"启动与重载","/document/nginx/guide/lifecycle","document/55.nginx/01.guide/04.lifecycle",{"title":2343,"path":2344,"stem":2345,"children":2346},"发布静态网站","/document/nginx/website","document/55.nginx/02.website/01.index",[2347,2349,2353,2357],{"title":2348,"path":2344,"stem":2345},"静态文件与目录",{"title":2350,"path":2351,"stem":2352},"站点与路径匹配","/document/nginx/website/location","document/55.nginx/02.website/02.location",{"title":2354,"path":2355,"stem":2356},"前端路由与回退","/document/nginx/website/spa-routing","document/55.nginx/02.website/03.spa-routing",{"title":2358,"path":2359,"stem":2360},"缓存与压缩","/document/nginx/website/cache-gzip","document/55.nginx/02.website/04.cache-gzip",{"title":2362,"path":2363,"stem":2364,"children":2365},"代理与服务分流","/document/nginx/proxy","document/55.nginx/03.proxy/01.index",[2366,2368,2372],{"title":2367,"path":2363,"stem":2364},"反向代理入门",{"title":2369,"path":2370,"stem":2371},"转发信息与超时","/document/nginx/proxy/forwarded-headers","document/55.nginx/03.proxy/02.forwarded-headers",{"title":2373,"path":2374,"stem":2375},"负载均衡","/document/nginx/proxy/load-balancing","document/55.nginx/03.proxy/03.load-balancing",{"title":2377,"path":2378,"stem":2379,"children":2380},"排错与发布","/document/nginx/operations","document/55.nginx/04.operations/01.index",[2381,2383,2387],{"title":2382,"path":2378,"stem":2379},"日志与故障排查",{"title":2384,"path":2385,"stem":2386},"大小与速率限制","/document/nginx/operations/request-limits","document/55.nginx/04.operations/02.request-limits",{"title":2388,"path":2389,"stem":2390},"HTTPS 与证书","/document/nginx/operations/https","document/55.nginx/04.operations/03.https",{"title":2392,"icon":2393,"path":2394,"stem":2395,"children":2396,"page":50},"Linux 与服务器基础","i-simple-icons-linux","/document/linux","document/56.linux",[2397,2424,2447],{"title":2398,"path":2399,"stem":2400,"children":2401},"Linux 入门与基本操作","/document/linux/guide","document/56.linux/01.guide/01.index",[2402,2404,2408,2412,2416,2420],{"title":2403,"path":2399,"stem":2400},"Linux 课程概览",{"title":2405,"path":2406,"stem":2407},"文件系统与目录","/document/linux/guide/filesystem","document/56.linux/01.guide/02.filesystem",{"title":2409,"path":2410,"stem":2411},"文件查看与 Vim","/document/linux/guide/editing","document/56.linux/01.guide/03.editing",{"title":2413,"path":2414,"stem":2415},"搜索、管道与重定向","/document/linux/guide/search-pipelines","document/56.linux/01.guide/04.search-pipelines",{"title":2417,"path":2418,"stem":2419},"用户、用户组与权限","/document/linux/guide/permissions","document/56.linux/01.guide/05.permissions",{"title":2421,"path":2422,"stem":2423},"SSH 与文件传输","/document/linux/guide/ssh","document/56.linux/01.guide/06.ssh",{"title":2425,"path":2426,"stem":2427,"children":2428},"Linux 服务器管理","/document/linux/server","document/56.linux/02.server/01.index",[2429,2431,2435,2439,2443],{"title":2430,"path":2426,"stem":2427},"软件包与环境变量",{"title":2432,"path":2433,"stem":2434},"进程与后台运行","/document/linux/server/processes","document/56.linux/02.server/02.processes",{"title":2436,"path":2437,"stem":2438},"systemd 服务管理","/document/linux/server/systemd","document/56.linux/02.server/03.systemd",{"title":2440,"path":2441,"stem":2442},"系统资源与磁盘","/document/linux/server/resources","document/56.linux/02.server/05.resources",{"title":2444,"path":2445,"stem":2446},"系统与应用日志","/document/linux/server/logs","document/56.linux/02.server/06.logs",{"title":2448,"path":2449,"stem":2450,"children":2451},"Shell 与服务器实战","/document/linux/practice","document/56.linux/03.practice/01.index",[2452,2454,2458],{"title":2453,"path":2449,"stem":2450},"Bash 脚本入门",{"title":2455,"path":2456,"stem":2457},"cron 定时任务","/document/linux/practice/cron","document/56.linux/03.practice/02.cron",{"title":2459,"path":2460,"stem":2461},"服务器基础安全","/document/linux/practice/security","document/56.linux/03.practice/03.security",{"title":2463,"icon":2464,"path":2465,"stem":2466,"children":2467,"page":50},"BFF 与多服务架构","i-lucide-network","/document/backend-architecture","document/57.backend-architecture",[2468,2483],{"title":2469,"path":2470,"stem":2471,"children":2472},"BFF 基础与实践","/document/backend-architecture/guide","document/57.backend-architecture/01.guide/01.index",[2473,2475,2479],{"title":2474,"path":2470,"stem":2471},"BFF 概览",{"title":2476,"path":2477,"stem":2478},"接口聚合","/document/backend-architecture/guide/aggregation","document/57.backend-architecture/01.guide/02.aggregation",{"title":2480,"path":2481,"stem":2482},"接口适配与职责边界","/document/backend-architecture/guide/adaptation","document/57.backend-architecture/01.guide/03.adaptation",{"title":2484,"path":2485,"stem":2486,"children":2487},"多服务拆分与协作","/document/backend-architecture/services","document/57.backend-architecture/02.services/01.index",[2488,2490,2494,2498],{"title":2489,"path":2485,"stem":2486},"从单体到多服务",{"title":2491,"path":2492,"stem":2493},"HTTP 服务协作","/document/backend-architecture/services/http-collaboration","document/57.backend-architecture/02.services/02.http-collaboration",{"title":2495,"path":2496,"stem":2497},"统一 API 入口","/document/backend-architecture/services/api-entry","document/57.backend-architecture/02.services/03.api-entry",{"title":2499,"path":2500,"stem":2501},"服务调用故障处理","/document/backend-architecture/services/failure-handling","document/57.backend-architecture/02.services/04.failure-handling",{"title":2503,"icon":2464,"path":2504,"stem":2505,"children":2506,"page":50},"微服务架构","/document/microservices","document/58.microservices",[2507,2526,2545],{"title":2508,"path":2509,"stem":2510,"children":2511},"微服务架构与设计","/document/microservices/guide","document/58.microservices/01.guide/01.index",[2512,2514,2518,2522],{"title":2513,"path":2509,"stem":2510},"微服务架构简介",{"title":2515,"path":2516,"stem":2517},"微服务的设计与拆分","/document/microservices/guide/service-design","document/58.microservices/01.guide/02.service-design",{"title":2519,"path":2520,"stem":2521},"项目结构与搭建","/document/microservices/guide/project-setup","document/58.microservices/01.guide/03.project-setup",{"title":2523,"path":2524,"stem":2525},"服务通信与发现","/document/microservices/guide/communication-discovery","document/58.microservices/01.guide/04.communication-discovery",{"title":2527,"path":2528,"stem":2529,"children":2530},"微服务业务开发","/document/microservices/development","document/58.microservices/02.development/01.index",[2531,2533,2537,2541],{"title":2532,"path":2528,"stem":2529},"数据库设计",{"title":2534,"path":2535,"stem":2536},"业务事件","/document/microservices/development/business-events","document/58.microservices/02.development/02.business-events",{"title":2538,"path":2539,"stem":2540},"分布式事务与数据一致性","/document/microservices/development/distributed-transactions","document/58.microservices/02.development/03.distributed-transactions",{"title":2542,"path":2543,"stem":2544},"容错与可靠性","/document/microservices/development/resilience","document/58.microservices/02.development/04.resilience",{"title":2546,"path":2547,"stem":2548,"children":2549},"微服务运行与治理","/document/microservices/operations","document/58.microservices/03.operations/01.index",[2550,2552,2556],{"title":2551,"path":2547,"stem":2548},"安全",{"title":2553,"path":2554,"stem":2555},"可观测性","/document/microservices/operations/observability","document/58.microservices/03.operations/02.observability",{"title":2557,"path":2558,"stem":2559},"部署与扩容","/document/microservices/operations/deployment-scaling","document/58.microservices/03.operations/04.deployment-scaling",{"title":2561,"icon":2562,"path":2563,"stem":2564,"children":2565,"page":50},"Kubernetes 应用部署","i-simple-icons-kubernetes","/document/kubernetes","document/59.kubernetes",[2566,2589],{"title":2567,"path":2568,"stem":2569,"children":2570},"Kubernetes 基础与应用部署","/document/kubernetes/guide","document/59.kubernetes/01.guide/01.index",[2571,2573,2577,2581,2585],{"title":2572,"path":2568,"stem":2569},"Kubernetes 简介",{"title":2574,"path":2575,"stem":2576},"环境搭建与基本操作","/document/kubernetes/guide/setup","document/59.kubernetes/01.guide/02.setup",{"title":2578,"path":2579,"stem":2580},"Pod","/document/kubernetes/guide/pod","document/59.kubernetes/01.guide/03.pod",{"title":2582,"path":2583,"stem":2584},"Deployment","/document/kubernetes/guide/deployment","document/59.kubernetes/01.guide/04.deployment",{"title":2586,"path":2587,"stem":2588},"Service","/document/kubernetes/guide/service","document/59.kubernetes/01.guide/05.service",{"title":2590,"path":2591,"stem":2592,"children":2593,"page":50},"服务配置与运行管理","/document/kubernetes/management","document/59.kubernetes/02.management",[2594,2598,2602,2606,2610,2614,2618],{"title":2595,"path":2596,"stem":2597},"Gateway API","/document/kubernetes/management/gateway-api","document/59.kubernetes/02.management/06.gateway-api",{"title":2599,"path":2600,"stem":2601},"ConfigMap 与 Secret","/document/kubernetes/management/configmap-secret","document/59.kubernetes/02.management/07.configmap-secret",{"title":2603,"path":2604,"stem":2605},"健康检查","/document/kubernetes/management/probes","document/59.kubernetes/02.management/08.probes",{"title":2607,"path":2608,"stem":2609},"资源请求与限制","/document/kubernetes/management/resources","document/59.kubernetes/02.management/09.resources",{"title":2611,"path":2612,"stem":2613},"滚动更新与回滚","/document/kubernetes/management/rolling-update","document/59.kubernetes/02.management/10.rolling-update",{"title":2615,"path":2616,"stem":2617},"扩容与自动伸缩","/document/kubernetes/management/autoscaling","document/59.kubernetes/02.management/11.autoscaling",{"title":2619,"path":2620,"stem":2621},"存储与持久化","/document/kubernetes/management/storage","document/59.kubernetes/02.management/12.storage",{"title":2623,"icon":2624,"path":2625,"stem":2626,"children":2627,"page":50},"LLM 基础","i-lucide-brain","/document/llm","document/60.llm",[2628,2651,2670],{"title":2629,"path":2630,"stem":2631,"children":2632},"大语言模型基础","/document/llm/guide","document/60.llm/01.guide/01.index",[2633,2635,2639,2643,2647],{"title":2634,"path":2630,"stem":2631},"大语言模型简介",{"title":2636,"path":2637,"stem":2638},"大语言模型的工作原理","/document/llm/guide/how-llms-work","document/60.llm/01.guide/02.how-llms-work",{"title":2640,"path":2641,"stem":2642},"Token 与上下文窗口","/document/llm/guide/tokens-and-context-window","document/60.llm/01.guide/03.tokens-and-context-window",{"title":2644,"path":2645,"stem":2646},"模型类型与参数","/document/llm/guide/model-types-and-parameters","document/60.llm/01.guide/04.model-types-and-parameters",{"title":2648,"path":2649,"stem":2650},"Embedding 与语义表示","/document/llm/guide/embeddings","document/60.llm/01.guide/05.embeddings",{"title":2652,"path":2653,"stem":2654,"children":2655},"Prompt Engineering","/document/llm/prompt-engineering","document/60.llm/02.prompt-engineering/01.index",[2656,2658,2662,2666],{"title":2657,"path":2653,"stem":2654},"提示词工程简介",{"title":2659,"path":2660,"stem":2661},"角色设定与指令设计","/document/llm/prompt-engineering/roles-and-instructions","document/60.llm/02.prompt-engineering/02.roles-and-instructions",{"title":2663,"path":2664,"stem":2665},"Few-shot 与示例引导","/document/llm/prompt-engineering/few-shot","document/60.llm/02.prompt-engineering/03.few-shot",{"title":2667,"path":2668,"stem":2669},"结构化输出与复杂任务提示","/document/llm/prompt-engineering/structured-output-and-complex-tasks","document/60.llm/02.prompt-engineering/04.structured-output-and-complex-tasks",{"title":2671,"path":2672,"stem":2673,"children":2674},"上下文工程与实践","/document/llm/context-engineering","document/60.llm/03.context-engineering/01.index",[2675,2677,2681],{"title":2676,"path":2672,"stem":2673},"上下文工程基础",{"title":2678,"path":2679,"stem":2680},"提示词测试与优化","/document/llm/context-engineering/prompt-testing-and-optimization","document/60.llm/03.context-engineering/02.prompt-testing-and-optimization",{"title":2682,"path":2683,"stem":2684},"提示词综合实践","/document/llm/context-engineering/prompt-practice","document/60.llm/03.context-engineering/03.prompt-practice",{"id":2686,"title":2595,"body":2687,"description":4761,"extension":4762,"links":4763,"meta":4764,"navigation":4765,"path":2596,"seo":4766,"stem":2597,"__hash__":4767},"docs/document/59.kubernetes/02.management/06.gateway-api.md",{"type":2688,"value":2689,"toc":4747},"minimal",[2690,2695,2708,2724,2731,2734,2738,2741,2759,2765,2774,2801,2804,2807,2810,2824,2834,2836,2840,2853,2856,2859,2921,2942,2949,2952,2954,2958,2961,2989,2995,3006,3015,3020,3023,3075,3078,3086,3108,3111,3118,3122,3128,3149,3152,3158,3165,3182,3309,3332,3335,3341,3347,3381,3384,3390,3403,3407,3417,3422,3476,3485,3490,3611,3642,3647,3799,3831,3838,3845,4185,4194,4197,4200,4232,4236,4252,4254,4260,4267,4272,4288,4290,4296,4302,4307,4328,4335,4341,4347,4352,4374,4377,4383,4399,4403,4412,4417,4439,4441,4447,4459,4465,4492,4495,4523,4541,4547,4569,4572,4591,4600,4607,4609,4613,4618,4621,4626,4629,4634,4640,4642,4646,4652,4667,4670,4684,4689,4709,4719,4729,4738,4740,4743],[2691,2692,2694],"h2",{"id":2693},"引言","🎯 引言",[2696,2697,2698,2699,2703,2704,2707],"p",{},"上一篇，我们创建了 ",[2700,2701,2702],"code",{},"orders"," Service。同一 Namespace 内的其他 Pod 可以通过 ",[2700,2705,2706],{},"http://orders"," 找到订单服务，但电脑浏览器通常不能直接访问这个集群内部名称。",[2696,2709,2710,2711,2714,2715,2718,2719,2723],{},"假设我们希望用户通过 ",[2700,2712,2713],{},"orders.gateway.test"," 的 ",[2700,2716,2717],{},"/api/info"," 路径访问订单服务，就需要一个 ",[2720,2721,2722],"strong",{},"接收 HTTP 请求的入口","，并配置规则：符合这个域名和路径的请求，应该交给哪个 Service。",[2696,2725,2726,2727,2730],{},"本篇只解决一个问题： ",[2720,2728,2729],{},"使用 Gateway API 为 Node.js 订单服务配置 HTTP 入口，并验证路由规则是否生效。"," 我们先理解请求路径和三个核心资源，再完成本地练习；真实公网入口、域名解析与 HTTPS 不在本篇配置范围内。",[2732,2733],"hr",{},[2691,2735,2737],{"id":2736},"为什么-service-之外还需要入口","🧱 为什么 Service 之外还需要入口",[2696,2739,2740],{},"回忆之前的订单服务：",[2742,2743,2744,2750],"ul",{},[2745,2746,2747,2749],"li",{},[2700,2748,2702],{}," Deployment：保证订单服务的 Pod 按期望数量运行。",[2745,2751,2752,2754,2755,2758],{},[2700,2753,2702],{}," Service：为这些 Pod 提供稳定的 ",[2720,2756,2757],{},"集群内部"," 访问地址。",[2696,2760,2761,2762,2764],{},"但浏览器在集群外部，无法直接依赖集群内部的 ",[2700,2763,2702],{}," 服务名。我们希望浏览器只需要记住一个域名，由入口根据请求规则找到订单 Service。",[2696,2766,2767,2768,2770,2771,2773],{},"我们的目标是：请求中的域名为 ",[2700,2769,2713],{},"、路径为 ",[2700,2772,2717],{}," 时，让订单服务的 Express 接口处理它。",[2696,2775,2776,2779,2780,2783,2784,2714,2787,2790,2791,2794,2795,2797,2798,2800],{},[2720,2777,2778],{},"先区分目标和本次练习："," 正式网站需要让域名解析到可访问的入口；本篇使用 ",[2700,2781,2782],{},"kubectl port-forward"," 和 ",[2700,2785,2786],{},"curl",[2700,2788,2789],{},"Host"," 请求头，在自己电脑上 ",[2720,2792,2793],{},"模拟外部 HTTP 请求","。即使稍后 ",[2700,2796,2786],{}," 成功，也不代表直接在浏览器输入 ",[2700,2799,2713],{}," 就能访问。",[2696,2802,2803],{},"先看请求应该经过哪些环节：",[2805,2806],"kubernetes-gateway-api-request",{},[2696,2808,2809],{},"这里有两个关键点：",[2811,2812,2813,2819],"ol",{},[2745,2814,2815,2818],{},[2720,2816,2817],{},"Traefik"," 是实际接收和转发 HTTP 请求的代理程序。",[2745,2820,2821,2823],{},[2720,2822,2595],{}," 不是另一个代理程序，而是一套告诉 Traefik 应该怎样处理请求的 Kubernetes 配置资源。",[2696,2825,2826,2827,2833],{},"所以，我们要做的不是修改订单服务，而是 ",[2720,2828,2829,2830,2832],{},"为已有的 ",[2700,2831,2702],{}," Service 配置入口规则","。",[2732,2835],{},[2691,2837,2839],{"id":2838},"gateway-api-的三个核心资源","🧩 Gateway API 的三个核心资源",[2696,2841,2842,2843],{},"假设这次只需要完成一件事： ",[2720,2844,2845,2846,2849,2850,2852],{},"用户请求 ",[2700,2847,2848],{},"orders.gateway.test/api/info","，交给 ",[2700,2851,2702],{}," Service。",[2696,2854,2855],{},"为了让 Traefik 知道该怎么做，我们需要告诉它三件事：使用哪种入口实现、入口允许什么流量进入、哪些请求交给订单服务。Gateway API 把这些信息分别放在三个资源中：",[2857,2858],"kubernetes-gateway-api-roles",{},[2860,2861,2862,2878],"table",{},[2863,2864,2865],"thead",{},[2866,2867,2868,2872,2875],"tr",{},[2869,2870,2871],"th",{},"资源",[2869,2873,2874],{},"回答的问题",[2869,2876,2877],{},"本篇配置",[2879,2880,2881,2893,2904],"tbody",{},[2866,2882,2883,2887,2890],{},[2884,2885,2886],"td",{},"GatewayClass",[2884,2888,2889],{},"由谁来实现入口？",[2884,2891,2892],{},"使用 Traefik",[2866,2894,2895,2898,2901],{},[2884,2896,2897],{},"Gateway",[2884,2899,2900],{},"入口接收什么流量？",[2884,2902,2903],{},"接收 HTTP 请求",[2866,2905,2906,2909,2912],{},[2884,2907,2908],{},"HTTPRoute",[2884,2910,2911],{},"哪些请求交给哪个 Service？",[2884,2913,2914,2915,2918,2919],{},"将符合域名和 ",[2700,2916,2917],{},"/api"," 路径的请求交给 ",[2700,2920,2702],{},[2696,2922,2923,2924,2926,2927,2930,2931,2933,2934,2936,2937,2783,2939,2941],{},"对应到本篇订单服务， ",[2720,2925,2897],{}," 会允许 ",[2700,2928,2929],{},"course"," Namespace 中的 HTTPRoute 使用入口； ",[2720,2932,2908],{}," 会指定 ",[2700,2935,2713],{},"、",[2700,2938,2917],{},[2700,2940,2702],{}," Service 之间的匹配关系。",[2696,2943,2944,2945,2948],{},"这些都是 ",[2720,2946,2947],{},"配置关系","，而不是请求依次穿过的三台服务器。真正接收和转发 HTTP 请求的仍是 Traefik。",[2696,2950,2951],{},"后面的 YAML 会一一对应这三个资源。此时先记住它们的职责即可，不必记忆全部字段。",[2732,2953],{},[2691,2955,2957],{"id":2956},"配置并验证-gateway-api","🛠 配置并验证 Gateway API",[2696,2959,2960],{},"下面复用前面课程已有的环境：",[2742,2962,2963,2970,2975],{},[2745,2964,2965,2966,2969],{},"kind 集群：",[2700,2967,2968],{},"node-course","；",[2745,2971,2972,2973,2969],{},"Namespace：",[2700,2974,2929],{},[2745,2976,2977,2978,2980,2981,2984,2985,2988],{},"Deployment 与 Service：",[2700,2979,2702],{},"；Service ",[2700,2982,2983],{},"80"," 端口对应订单应用的 ",[2700,2986,2987],{},"3000"," 端口。",[2696,2990,2991,2992,2994],{},"本篇选择 ",[2720,2993,2817],{}," 处理 HTTP 请求。环境准备只做两件事：让 Kubernetes 认识 Gateway API 的资源类型，以及安装能够读取这些配置的 Traefik。CRD、Helm 的内部原理不是本篇重点。",[2696,2996,2997,2998,3001,3002,3005],{},"本文以 ",[2720,2999,3000],{},"Gateway API v1.6.3 Standard + Traefik Helm Chart 42.3.0"," 为固定示例组合。Chart 42.x 要求 ",[2720,3003,3004],{},"Kubernetes 1.30 或更新版本","；如果前面创建的 kind 集群版本较旧，需要先使用兼容的练习环境。以下安装与更新命令仅用于课程专用集群，不能直接照搬到生产环境。",[3007,3008,3009],"blockquote",{},[2696,3010,3011,3014],{},[2720,3012,3013],{},"输出说明："," 以下终端输出都是帮助理解命令结果的模拟示例，实际运行时应以自己的集群结果为准。本文配置依据官方文档核对，但尚未在真实 kind 环境中完成端到端测试。",[3016,3017,3019],"h3",{"id":3018},"_1-检查订单服务","1. 检查订单服务",[2696,3021,3022],{},"打开终端：",[3024,3025,3030],"pre",{"className":3026,"code":3027,"language":3028,"meta":3029,"style":3029},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","kubectl config current-context\nkubectl get nodes\nkubectl get deployment,service -n course\n","bash","",[2700,3031,3032,3048,3059],{"__ignoreMap":3029},[3033,3034,3037,3041,3045],"span",{"class":3035,"line":3036},"line",1,[3033,3038,3040],{"class":3039},"sYGMc","kubectl",[3033,3042,3044],{"class":3043},"sIEYB"," config",[3033,3046,3047],{"class":3043}," current-context\n",[3033,3049,3051,3053,3056],{"class":3035,"line":3050},2,[3033,3052,3040],{"class":3039},[3033,3054,3055],{"class":3043}," get",[3033,3057,3058],{"class":3043}," nodes\n",[3033,3060,3062,3064,3066,3069,3072],{"class":3035,"line":3061},3,[3033,3063,3040],{"class":3039},[3033,3065,3055],{"class":3043},[3033,3067,3068],{"class":3043}," deployment,service",[3033,3070,3071],{"class":3043}," -n",[3033,3073,3074],{"class":3043}," course\n",[2696,3076,3077],{},"模拟输出：",[3024,3079,3084],{"className":3080,"code":3082,"language":3083,"meta":3029},[3081],"language-text","kind-node-course\n\nNAME                        STATUS   ROLES           AGE   VERSION\nnode-course-control-plane   Ready    control-plane   20m   v1.34.0\n\nNAME                     READY   UP-TO-DATE   AVAILABLE   AGE\ndeployment.apps/orders   2/2     2            2           10m\n\nNAME             TYPE        CLUSTER-IP    EXTERNAL-IP   PORT(S)   AGE\nservice/orders   ClusterIP   10.96.42.10   \u003Cnone>        80/TCP    8m\n","text",[2700,3085,3082],{"__ignoreMap":3029},[2696,3087,3088,3089,2714,3092,3095,3096,3099,3100,3103,3104,3107],{},"第一行是当前集群名称。",[2700,3090,3091],{},"kubectl get nodes",[2700,3093,3094],{},"VERSION"," 用来确认 Kubernetes 版本；本示例中的 ",[2700,3097,3098],{},"v1.34.0"," 只是模拟值。",[2700,3101,3102],{},"READY 2/2"," 表示订单 Deployment 当前有两个就绪副本，",[2700,3105,3106],{},"service/orders"," 说明订单 Service 已存在。",[2696,3109,3110],{},"如果没有这些资源，请先完成前面的 Deployment 和 Service 练习，不需要重新编写 Node.js 代码。",[2696,3112,3113,3114,3117],{},"你也可以执行 ",[2700,3115,3116],{},"kubectl get endpointslices -n course -l kubernetes.io/service-name=orders","，确认 Service 已发现订单 Pod；如果后端为空，要先检查 Pod 和 Service 标签，不应急于安装网关。",[3016,3119,3121],{"id":3120},"_2-准备-gateway-api-与-traefik","2. 准备 Gateway API 与 Traefik",[2696,3123,3124,3127],{},[2720,3125,3126],{},"第一步：安装 Gateway API 资源定义。"," 普通 kind 集群默认不一定认识 GatewayClass、Gateway 和 HTTPRoute，所以先安装对应资源类型：",[3024,3129,3131],{"className":3026,"code":3130,"language":3028,"meta":3029,"style":3029},"kubectl apply --server-side -f https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.6.3/standard-install.yaml\n",[2700,3132,3133],{"__ignoreMap":3029},[3033,3134,3135,3137,3140,3143,3146],{"class":3035,"line":3036},[3033,3136,3040],{"class":3039},[3033,3138,3139],{"class":3043}," apply",[3033,3141,3142],{"class":3043}," --server-side",[3033,3144,3145],{"class":3043}," -f",[3033,3147,3148],{"class":3043}," https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.6.3/standard-install.yaml\n",[2696,3150,3151],{},"模拟输出（节选）：",[3024,3153,3156],{"className":3154,"code":3155,"language":3083,"meta":3029},[3081],"customresourcedefinition.apiextensions.k8s.io/gatewayclasses.gateway.networking.k8s.io serverside-applied\ncustomresourcedefinition.apiextensions.k8s.io/gateways.gateway.networking.k8s.io serverside-applied\ncustomresourcedefinition.apiextensions.k8s.io/httproutes.gateway.networking.k8s.io serverside-applied\n",[2700,3157,3155],{"__ignoreMap":3029},[2696,3159,3160,3161,3164],{},"这些资源类型已被提交给集群。这里的 ",[2720,3162,3163],{},"CRD"," 是“自定义资源定义”，可以暂时理解为给 Kubernetes 增加新的资源类型。",[2696,3166,3167,3170,3171,3174,3175,2833],{},[2720,3168,3169],{},"第二步：安装 Traefik。"," 使用 Helm 安装入口程序。Helm 是 Kubernetes 的应用安装工具；如果还没有 Helm，macOS 可执行 ",[2700,3172,3173],{},"brew install helm","，其他系统参考 ",[3176,3177,3181],"a",{"href":3178,"rel":3179},"https://helm.sh/docs/intro/install/",[3180],"nofollow","官方安装说明",[3024,3183,3185],{"className":3026,"code":3184,"language":3028,"meta":3029,"style":3029},"helm repo add traefik https://traefik.github.io/charts\nhelm repo update\nhelm upgrade --install traefik traefik/traefik \\\n  --version 42.3.0 \\\n  --namespace traefik --create-namespace \\\n  --set providers.kubernetesGateway.enabled=true \\\n  --set gateway.enabled=false \\\n  --set gatewayClass.enabled=false \\\n  --wait --timeout 5m\n",[2700,3186,3187,3204,3213,3232,3244,3257,3272,3285,3297],{"__ignoreMap":3029},[3033,3188,3189,3192,3195,3198,3201],{"class":3035,"line":3036},[3033,3190,3191],{"class":3039},"helm",[3033,3193,3194],{"class":3043}," repo",[3033,3196,3197],{"class":3043}," add",[3033,3199,3200],{"class":3043}," traefik",[3033,3202,3203],{"class":3043}," https://traefik.github.io/charts\n",[3033,3205,3206,3208,3210],{"class":3035,"line":3050},[3033,3207,3191],{"class":3039},[3033,3209,3194],{"class":3043},[3033,3211,3212],{"class":3043}," update\n",[3033,3214,3215,3217,3220,3223,3225,3228],{"class":3035,"line":3061},[3033,3216,3191],{"class":3039},[3033,3218,3219],{"class":3043}," upgrade",[3033,3221,3222],{"class":3043}," --install",[3033,3224,3200],{"class":3043},[3033,3226,3227],{"class":3043}," traefik/traefik",[3033,3229,3231],{"class":3230},"sndM8"," \\\n",[3033,3233,3235,3238,3242],{"class":3035,"line":3234},4,[3033,3236,3237],{"class":3043},"  --version",[3033,3239,3241],{"class":3240},"smPcV"," 42.3.0",[3033,3243,3231],{"class":3230},[3033,3245,3247,3250,3252,3255],{"class":3035,"line":3246},5,[3033,3248,3249],{"class":3043},"  --namespace",[3033,3251,3200],{"class":3043},[3033,3253,3254],{"class":3043}," --create-namespace",[3033,3256,3231],{"class":3230},[3033,3258,3260,3263,3266,3270],{"class":3035,"line":3259},6,[3033,3261,3262],{"class":3043},"  --set",[3033,3264,3265],{"class":3043}," providers.kubernetesGateway.enabled=",[3033,3267,3269],{"class":3268},"s86vT","true",[3033,3271,3231],{"class":3230},[3033,3273,3275,3277,3280,3283],{"class":3035,"line":3274},7,[3033,3276,3262],{"class":3043},[3033,3278,3279],{"class":3043}," gateway.enabled=",[3033,3281,3282],{"class":3268},"false",[3033,3284,3231],{"class":3230},[3033,3286,3288,3290,3293,3295],{"class":3035,"line":3287},8,[3033,3289,3262],{"class":3043},[3033,3291,3292],{"class":3043}," gatewayClass.enabled=",[3033,3294,3282],{"class":3268},[3033,3296,3231],{"class":3230},[3033,3298,3300,3303,3306],{"class":3035,"line":3299},9,[3033,3301,3302],{"class":3043},"  --wait",[3033,3304,3305],{"class":3043}," --timeout",[3033,3307,3308],{"class":3043}," 5m\n",[2696,3310,3311,3312,3315,3316,3319,3320,3323,3324,3327,3328,3331],{},"这里只需要理解：",[2700,3313,3314],{},"--version 42.3.0"," 固定 Chart 版本；",[2700,3317,3318],{},"providers.kubernetesGateway.enabled=true"," 让 Traefik 读取 Gateway API 资源；两个 ",[2700,3321,3322],{},"enabled=false"," 阻止 Chart 自动创建 Gateway 和 GatewayClass，方便下一节由我们自己创建， ",[2720,3325,3326],{},"并不是关闭 Gateway API","。如果此前已安装同名 Helm Release，",[2700,3329,3330],{},"upgrade --install"," 会更新它，因此不要在其他集群随意执行。",[2696,3333,3334],{},"首次安装成功时的模拟输出（节选）：",[3024,3336,3339],{"className":3337,"code":3338,"language":3083,"meta":3029},[3081],"Release \"traefik\" does not exist. Installing it now.\nNAME: traefik\nNAMESPACE: traefik\nSTATUS: deployed\n",[2700,3340,3338],{"__ignoreMap":3029},[2696,3342,3343,3344,3346],{},"再检查 Traefik 是否运行，以及有没有对外提供 HTTP 的 ",[2700,3345,2983],{}," 端口：",[3024,3348,3350],{"className":3026,"code":3349,"language":3028,"meta":3029,"style":3029},"kubectl get pods -n traefik\nkubectl get service traefik -n traefik\n",[2700,3351,3352,3366],{"__ignoreMap":3029},[3033,3353,3354,3356,3358,3361,3363],{"class":3035,"line":3036},[3033,3355,3040],{"class":3039},[3033,3357,3055],{"class":3043},[3033,3359,3360],{"class":3043}," pods",[3033,3362,3071],{"class":3043},[3033,3364,3365],{"class":3043}," traefik\n",[3033,3367,3368,3370,3372,3375,3377,3379],{"class":3035,"line":3050},[3033,3369,3040],{"class":3039},[3033,3371,3055],{"class":3043},[3033,3373,3374],{"class":3043}," service",[3033,3376,3200],{"class":3043},[3033,3378,3071],{"class":3043},[3033,3380,3365],{"class":3043},[2696,3382,3383],{},"模拟输出（按命令顺序，只保留重点）：",[3024,3385,3388],{"className":3386,"code":3387,"language":3083,"meta":3029},[3081],"NAME                       READY   STATUS    RESTARTS   AGE\ntraefik-6f8c9d7b5-abcde   1/1     Running   0          40s\n\nNAME      TYPE           CLUSTER-IP    EXTERNAL-IP   PORT(S)                    AGE\ntraefik   LoadBalancer   10.96.88.20   \u003Cpending>     80:30080/TCP,443:30443/TCP  1m\n",[2700,3389,3387],{"__ignoreMap":3029},[2696,3391,3392,3393,3396,3397,3400,3401,2852],{},"Traefik Pod 已就绪；在普通 kind 集群中，外部地址显示 ",[2700,3394,3395],{},"\u003Cpending>"," 并不妨碍后面通过本机 ",[2700,3398,3399],{},"port-forward"," 测试。此时只是入口程序准备好了，还没有告诉它要把请求交给 ",[2700,3402,2702],{},[3016,3404,3406],{"id":3405},"_3-编写-gateway-api-配置","3. 编写 Gateway API 配置",[2696,3408,3409,3410,3412,3413,3416],{},"我们已经有了 ",[2700,3411,2702],{}," Service，现在要回答三个问题： ",[2720,3414,3415],{},"谁实现入口？入口接收什么请求？请求交给谁？"," 按这个顺序认识三个资源，再把它们合并进一个文件。",[2696,3418,3419],{},[2720,3420,3421],{},"第一个：GatewayClass——选择 Traefik。",[3024,3423,3427],{"className":3424,"code":3425,"language":3426,"meta":3029,"style":3029},"language-yaml shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","kind: GatewayClass\nmetadata:\n  name: traefik-course\nspec:\n  controllerName: traefik.io/gateway-controller\n","yaml",[2700,3428,3429,3441,3449,3459,3466],{"__ignoreMap":3029},[3033,3430,3431,3435,3438],{"class":3035,"line":3036},[3033,3432,3434],{"class":3433},"sd2Uz","kind",[3033,3436,3437],{"class":3268},":",[3033,3439,3440],{"class":3043}," GatewayClass\n",[3033,3442,3443,3446],{"class":3035,"line":3050},[3033,3444,3445],{"class":3433},"metadata",[3033,3447,3448],{"class":3268},":\n",[3033,3450,3451,3454,3456],{"class":3035,"line":3061},[3033,3452,3453],{"class":3433},"  name",[3033,3455,3437],{"class":3268},[3033,3457,3458],{"class":3043}," traefik-course\n",[3033,3460,3461,3464],{"class":3035,"line":3234},[3033,3462,3463],{"class":3433},"spec",[3033,3465,3448],{"class":3268},[3033,3467,3468,3471,3473],{"class":3035,"line":3246},[3033,3469,3470],{"class":3433},"  controllerName",[3033,3472,3437],{"class":3268},[3033,3474,3475],{"class":3043}," traefik.io/gateway-controller\n",[2696,3477,3478,3481,3482,2833],{},[2700,3479,3480],{},"controllerName"," 指定由哪种 Controller 实现这一类 Gateway。本例选 Traefik，并把 GatewayClass 命名为 ",[2700,3483,3484],{},"traefik-course",[2696,3486,3487],{},[2720,3488,3489],{},"第二个：Gateway——设置 HTTP 入口。",[3024,3491,3493],{"className":3424,"code":3492,"language":3426,"meta":3029,"style":3029},"kind: Gateway\nmetadata:\n  name: orders-gateway\n  namespace: course\nspec:\n  gatewayClassName: traefik-course\n  listeners:\n    - name: http\n      protocol: HTTP\n      port: 8000\n      allowedRoutes:\n        namespaces:\n          from: Same\n",[2700,3494,3495,3504,3510,3519,3528,3534,3543,3550,3563,3573,3584,3592,3600],{"__ignoreMap":3029},[3033,3496,3497,3499,3501],{"class":3035,"line":3036},[3033,3498,3434],{"class":3433},[3033,3500,3437],{"class":3268},[3033,3502,3503],{"class":3043}," Gateway\n",[3033,3505,3506,3508],{"class":3035,"line":3050},[3033,3507,3445],{"class":3433},[3033,3509,3448],{"class":3268},[3033,3511,3512,3514,3516],{"class":3035,"line":3061},[3033,3513,3453],{"class":3433},[3033,3515,3437],{"class":3268},[3033,3517,3518],{"class":3043}," orders-gateway\n",[3033,3520,3521,3524,3526],{"class":3035,"line":3234},[3033,3522,3523],{"class":3433},"  namespace",[3033,3525,3437],{"class":3268},[3033,3527,3074],{"class":3043},[3033,3529,3530,3532],{"class":3035,"line":3246},[3033,3531,3463],{"class":3433},[3033,3533,3448],{"class":3268},[3033,3535,3536,3539,3541],{"class":3035,"line":3259},[3033,3537,3538],{"class":3433},"  gatewayClassName",[3033,3540,3437],{"class":3268},[3033,3542,3458],{"class":3043},[3033,3544,3545,3548],{"class":3035,"line":3274},[3033,3546,3547],{"class":3433},"  listeners",[3033,3549,3448],{"class":3268},[3033,3551,3552,3555,3558,3560],{"class":3035,"line":3287},[3033,3553,3554],{"class":3268},"    -",[3033,3556,3557],{"class":3433}," name",[3033,3559,3437],{"class":3268},[3033,3561,3562],{"class":3043}," http\n",[3033,3564,3565,3568,3570],{"class":3035,"line":3299},[3033,3566,3567],{"class":3433},"      protocol",[3033,3569,3437],{"class":3268},[3033,3571,3572],{"class":3043}," HTTP\n",[3033,3574,3576,3579,3581],{"class":3035,"line":3575},10,[3033,3577,3578],{"class":3433},"      port",[3033,3580,3437],{"class":3268},[3033,3582,3583],{"class":3240}," 8000\n",[3033,3585,3587,3590],{"class":3035,"line":3586},11,[3033,3588,3589],{"class":3433},"      allowedRoutes",[3033,3591,3448],{"class":3268},[3033,3593,3595,3598],{"class":3035,"line":3594},12,[3033,3596,3597],{"class":3433},"        namespaces",[3033,3599,3448],{"class":3268},[3033,3601,3603,3606,3608],{"class":3035,"line":3602},13,[3033,3604,3605],{"class":3433},"          from",[3033,3607,3437],{"class":3268},[3033,3609,3610],{"class":3043}," Same\n",[2696,3612,3613,3616,3617,3620,3621,3624,3625,3628,3629,3632,3633,3636,3637,3639,3640,2833],{},[2700,3614,3615],{},"gatewayClassName"," 指向刚才创建的 GatewayClass；",[2700,3618,3619],{},"listeners"," 描述入口接收 HTTP 请求，",[2700,3622,3623],{},"port: 8000"," 对应本例 Traefik 的 ",[2700,3626,3627],{},"web"," 入口。",[2700,3630,3631],{},"from: Same"," 表示只允许与这个 Gateway ",[2720,3634,3635],{},"处于同一 Namespace"," 的路由绑定它。这里 Gateway 在 ",[2700,3638,2929],{}," Namespace，所以本篇的 HTTPRoute 也放在 ",[2700,3641,2929],{},[2696,3643,3644],{},[2720,3645,3646],{},"第三个：HTTPRoute——选择订单服务。",[3024,3648,3650],{"className":3424,"code":3649,"language":3426,"meta":3029,"style":3029},"kind: HTTPRoute\nmetadata:\n  name: orders-route\n  namespace: course\nspec:\n  parentRefs:\n    - name: orders-gateway\n  hostnames:\n    - orders.gateway.test\n  rules:\n    - matches:\n        - path:\n            type: PathPrefix\n            value: /api\n      backendRefs:\n        - name: orders\n          port: 80\n",[2700,3651,3652,3661,3667,3676,3684,3690,3697,3707,3714,3721,3728,3737,3747,3757,3768,3776,3788],{"__ignoreMap":3029},[3033,3653,3654,3656,3658],{"class":3035,"line":3036},[3033,3655,3434],{"class":3433},[3033,3657,3437],{"class":3268},[3033,3659,3660],{"class":3043}," HTTPRoute\n",[3033,3662,3663,3665],{"class":3035,"line":3050},[3033,3664,3445],{"class":3433},[3033,3666,3448],{"class":3268},[3033,3668,3669,3671,3673],{"class":3035,"line":3061},[3033,3670,3453],{"class":3433},[3033,3672,3437],{"class":3268},[3033,3674,3675],{"class":3043}," orders-route\n",[3033,3677,3678,3680,3682],{"class":3035,"line":3234},[3033,3679,3523],{"class":3433},[3033,3681,3437],{"class":3268},[3033,3683,3074],{"class":3043},[3033,3685,3686,3688],{"class":3035,"line":3246},[3033,3687,3463],{"class":3433},[3033,3689,3448],{"class":3268},[3033,3691,3692,3695],{"class":3035,"line":3259},[3033,3693,3694],{"class":3433},"  parentRefs",[3033,3696,3448],{"class":3268},[3033,3698,3699,3701,3703,3705],{"class":3035,"line":3274},[3033,3700,3554],{"class":3268},[3033,3702,3557],{"class":3433},[3033,3704,3437],{"class":3268},[3033,3706,3518],{"class":3043},[3033,3708,3709,3712],{"class":3035,"line":3287},[3033,3710,3711],{"class":3433},"  hostnames",[3033,3713,3448],{"class":3268},[3033,3715,3716,3718],{"class":3035,"line":3299},[3033,3717,3554],{"class":3268},[3033,3719,3720],{"class":3043}," orders.gateway.test\n",[3033,3722,3723,3726],{"class":3035,"line":3575},[3033,3724,3725],{"class":3433},"  rules",[3033,3727,3448],{"class":3268},[3033,3729,3730,3732,3735],{"class":3035,"line":3586},[3033,3731,3554],{"class":3268},[3033,3733,3734],{"class":3433}," matches",[3033,3736,3448],{"class":3268},[3033,3738,3739,3742,3745],{"class":3035,"line":3594},[3033,3740,3741],{"class":3268},"        -",[3033,3743,3744],{"class":3433}," path",[3033,3746,3448],{"class":3268},[3033,3748,3749,3752,3754],{"class":3035,"line":3602},[3033,3750,3751],{"class":3433},"            type",[3033,3753,3437],{"class":3268},[3033,3755,3756],{"class":3043}," PathPrefix\n",[3033,3758,3760,3763,3765],{"class":3035,"line":3759},14,[3033,3761,3762],{"class":3433},"            value",[3033,3764,3437],{"class":3268},[3033,3766,3767],{"class":3043}," /api\n",[3033,3769,3771,3774],{"class":3035,"line":3770},15,[3033,3772,3773],{"class":3433},"      backendRefs",[3033,3775,3448],{"class":3268},[3033,3777,3779,3781,3783,3785],{"class":3035,"line":3778},16,[3033,3780,3741],{"class":3268},[3033,3782,3557],{"class":3433},[3033,3784,3437],{"class":3268},[3033,3786,3787],{"class":3043}," orders\n",[3033,3789,3791,3794,3796],{"class":3035,"line":3790},17,[3033,3792,3793],{"class":3433},"          port",[3033,3795,3437],{"class":3268},[3033,3797,3798],{"class":3240}," 80\n",[2696,3800,3801,3804,3805,2969,3808,2783,3811,3814,3815,3818,3819,3821,3822,3824,3825,3827,3828,2833],{},[2700,3802,3803],{},"parentRefs"," 指向 ",[2700,3806,3807],{},"orders-gateway",[2700,3809,3810],{},"hostnames",[2700,3812,3813],{},"PathPrefix: /api"," 分别匹配域名和 URL 路径；",[2700,3816,3817],{},"backendRefs"," 指定请求最终交给 ",[2700,3820,2702],{}," Service 的 ",[2700,3823,2983],{}," 端口。Express 本来就有 ",[2700,3826,2717],{}," 接口，所以这里 ",[2720,3829,3830],{},"不需要改写请求路径",[2696,3832,3833,3834,3837],{},"上面三段只截取了重点字段， ",[2720,3835,3836],{},"不要单独复制执行","。下面才是可以保存和提交的完整配置。",[2696,3839,3840,3841,3844],{},"创建 ",[2700,3842,3843],{},"gateway-api.yaml","：",[3024,3846,3848],{"className":3424,"code":3847,"language":3426,"meta":3029,"style":3029},"# ① 指定 Traefik 实现入口\napiVersion: gateway.networking.k8s.io/v1\nkind: GatewayClass\nmetadata:\n  name: traefik-course\nspec:\n  controllerName: traefik.io/gateway-controller\n---\n# ② 创建 HTTP 入口\napiVersion: gateway.networking.k8s.io/v1\nkind: Gateway\nmetadata:\n  name: orders-gateway\n  namespace: course\nspec:\n  gatewayClassName: traefik-course\n  listeners:\n    - name: http\n      protocol: HTTP\n      port: 8000\n      allowedRoutes:\n        namespaces:\n          from: Same\n---\n# ③ 指定域名、路径与后端 Service\napiVersion: gateway.networking.k8s.io/v1\nkind: HTTPRoute\nmetadata:\n  name: orders-route\n  namespace: course\nspec:\n  parentRefs:\n    - name: orders-gateway\n  hostnames:\n    - orders.gateway.test\n  rules:\n    - matches:\n        - path:\n            type: PathPrefix\n            value: /api\n      backendRefs:\n        - name: orders\n          port: 80\n",[2700,3849,3850,3856,3866,3874,3880,3888,3894,3902,3907,3912,3920,3928,3934,3942,3950,3956,3964,3970,3981,3990,3999,4006,4013,4022,4027,4033,4042,4051,4058,4067,4076,4083,4090,4101,4108,4115,4122,4131,4140,4149,4158,4165,4176],{"__ignoreMap":3029},[3033,3851,3852],{"class":3035,"line":3036},[3033,3853,3855],{"class":3854},"syuKq","# ① 指定 Traefik 实现入口\n",[3033,3857,3858,3861,3863],{"class":3035,"line":3050},[3033,3859,3860],{"class":3433},"apiVersion",[3033,3862,3437],{"class":3268},[3033,3864,3865],{"class":3043}," gateway.networking.k8s.io/v1\n",[3033,3867,3868,3870,3872],{"class":3035,"line":3061},[3033,3869,3434],{"class":3433},[3033,3871,3437],{"class":3268},[3033,3873,3440],{"class":3043},[3033,3875,3876,3878],{"class":3035,"line":3234},[3033,3877,3445],{"class":3433},[3033,3879,3448],{"class":3268},[3033,3881,3882,3884,3886],{"class":3035,"line":3246},[3033,3883,3453],{"class":3433},[3033,3885,3437],{"class":3268},[3033,3887,3458],{"class":3043},[3033,3889,3890,3892],{"class":3035,"line":3259},[3033,3891,3463],{"class":3433},[3033,3893,3448],{"class":3268},[3033,3895,3896,3898,3900],{"class":3035,"line":3274},[3033,3897,3470],{"class":3433},[3033,3899,3437],{"class":3268},[3033,3901,3475],{"class":3043},[3033,3903,3904],{"class":3035,"line":3287},[3033,3905,3906],{"class":3039},"---\n",[3033,3908,3909],{"class":3035,"line":3299},[3033,3910,3911],{"class":3854},"# ② 创建 HTTP 入口\n",[3033,3913,3914,3916,3918],{"class":3035,"line":3575},[3033,3915,3860],{"class":3433},[3033,3917,3437],{"class":3268},[3033,3919,3865],{"class":3043},[3033,3921,3922,3924,3926],{"class":3035,"line":3586},[3033,3923,3434],{"class":3433},[3033,3925,3437],{"class":3268},[3033,3927,3503],{"class":3043},[3033,3929,3930,3932],{"class":3035,"line":3594},[3033,3931,3445],{"class":3433},[3033,3933,3448],{"class":3268},[3033,3935,3936,3938,3940],{"class":3035,"line":3602},[3033,3937,3453],{"class":3433},[3033,3939,3437],{"class":3268},[3033,3941,3518],{"class":3043},[3033,3943,3944,3946,3948],{"class":3035,"line":3759},[3033,3945,3523],{"class":3433},[3033,3947,3437],{"class":3268},[3033,3949,3074],{"class":3043},[3033,3951,3952,3954],{"class":3035,"line":3770},[3033,3953,3463],{"class":3433},[3033,3955,3448],{"class":3268},[3033,3957,3958,3960,3962],{"class":3035,"line":3778},[3033,3959,3538],{"class":3433},[3033,3961,3437],{"class":3268},[3033,3963,3458],{"class":3043},[3033,3965,3966,3968],{"class":3035,"line":3790},[3033,3967,3547],{"class":3433},[3033,3969,3448],{"class":3268},[3033,3971,3973,3975,3977,3979],{"class":3035,"line":3972},18,[3033,3974,3554],{"class":3268},[3033,3976,3557],{"class":3433},[3033,3978,3437],{"class":3268},[3033,3980,3562],{"class":3043},[3033,3982,3984,3986,3988],{"class":3035,"line":3983},19,[3033,3985,3567],{"class":3433},[3033,3987,3437],{"class":3268},[3033,3989,3572],{"class":3043},[3033,3991,3993,3995,3997],{"class":3035,"line":3992},20,[3033,3994,3578],{"class":3433},[3033,3996,3437],{"class":3268},[3033,3998,3583],{"class":3240},[3033,4000,4002,4004],{"class":3035,"line":4001},21,[3033,4003,3589],{"class":3433},[3033,4005,3448],{"class":3268},[3033,4007,4009,4011],{"class":3035,"line":4008},22,[3033,4010,3597],{"class":3433},[3033,4012,3448],{"class":3268},[3033,4014,4016,4018,4020],{"class":3035,"line":4015},23,[3033,4017,3605],{"class":3433},[3033,4019,3437],{"class":3268},[3033,4021,3610],{"class":3043},[3033,4023,4025],{"class":3035,"line":4024},24,[3033,4026,3906],{"class":3039},[3033,4028,4030],{"class":3035,"line":4029},25,[3033,4031,4032],{"class":3854},"# ③ 指定域名、路径与后端 Service\n",[3033,4034,4036,4038,4040],{"class":3035,"line":4035},26,[3033,4037,3860],{"class":3433},[3033,4039,3437],{"class":3268},[3033,4041,3865],{"class":3043},[3033,4043,4045,4047,4049],{"class":3035,"line":4044},27,[3033,4046,3434],{"class":3433},[3033,4048,3437],{"class":3268},[3033,4050,3660],{"class":3043},[3033,4052,4054,4056],{"class":3035,"line":4053},28,[3033,4055,3445],{"class":3433},[3033,4057,3448],{"class":3268},[3033,4059,4061,4063,4065],{"class":3035,"line":4060},29,[3033,4062,3453],{"class":3433},[3033,4064,3437],{"class":3268},[3033,4066,3675],{"class":3043},[3033,4068,4070,4072,4074],{"class":3035,"line":4069},30,[3033,4071,3523],{"class":3433},[3033,4073,3437],{"class":3268},[3033,4075,3074],{"class":3043},[3033,4077,4079,4081],{"class":3035,"line":4078},31,[3033,4080,3463],{"class":3433},[3033,4082,3448],{"class":3268},[3033,4084,4086,4088],{"class":3035,"line":4085},32,[3033,4087,3694],{"class":3433},[3033,4089,3448],{"class":3268},[3033,4091,4093,4095,4097,4099],{"class":3035,"line":4092},33,[3033,4094,3554],{"class":3268},[3033,4096,3557],{"class":3433},[3033,4098,3437],{"class":3268},[3033,4100,3518],{"class":3043},[3033,4102,4104,4106],{"class":3035,"line":4103},34,[3033,4105,3711],{"class":3433},[3033,4107,3448],{"class":3268},[3033,4109,4111,4113],{"class":3035,"line":4110},35,[3033,4112,3554],{"class":3268},[3033,4114,3720],{"class":3043},[3033,4116,4118,4120],{"class":3035,"line":4117},36,[3033,4119,3725],{"class":3433},[3033,4121,3448],{"class":3268},[3033,4123,4125,4127,4129],{"class":3035,"line":4124},37,[3033,4126,3554],{"class":3268},[3033,4128,3734],{"class":3433},[3033,4130,3448],{"class":3268},[3033,4132,4134,4136,4138],{"class":3035,"line":4133},38,[3033,4135,3741],{"class":3268},[3033,4137,3744],{"class":3433},[3033,4139,3448],{"class":3268},[3033,4141,4143,4145,4147],{"class":3035,"line":4142},39,[3033,4144,3751],{"class":3433},[3033,4146,3437],{"class":3268},[3033,4148,3756],{"class":3043},[3033,4150,4152,4154,4156],{"class":3035,"line":4151},40,[3033,4153,3762],{"class":3433},[3033,4155,3437],{"class":3268},[3033,4157,3767],{"class":3043},[3033,4159,4161,4163],{"class":3035,"line":4160},41,[3033,4162,3773],{"class":3433},[3033,4164,3448],{"class":3268},[3033,4166,4168,4170,4172,4174],{"class":3035,"line":4167},42,[3033,4169,3741],{"class":3268},[3033,4171,3557],{"class":3433},[3033,4173,3437],{"class":3268},[3033,4175,3787],{"class":3043},[3033,4177,4179,4181,4183],{"class":3035,"line":4178},43,[3033,4180,3793],{"class":3433},[3033,4182,3437],{"class":3268},[3033,4184,3798],{"class":3240},[2696,4186,4187,4188,4191,4192,2833],{},"三个资源放在同一个 YAML 文件中，使用 ",[2700,4189,4190],{},"---"," 分隔。每个资源都补上了 Kubernetes 识别所需的 ",[2700,4193,3860],{},[2696,4195,4196],{},"接下来实操会出现几个端口，先看图，不必死记数字：",[4198,4199],"kubernetes-gateway-api-ports",{},[2696,4201,4202,4203,4206,4207,4209,4210,4213,4214,4216,4217,4219,4220,4222,4223,4225,4226,2833,4229,4231],{},"这张图对应本次练习：本机 ",[2700,4204,4205],{},"8081"," → Traefik Service ",[2700,4208,2983],{}," → Traefik 内部 HTTP 入口 ",[2700,4211,4212],{},"8000"," → ",[2700,4215,2702],{}," Service ",[2700,4218,2983],{}," → 订单 Pod ",[2700,4221,2987],{},"。图中两个 ",[2700,4224,2983],{}," 属于 ",[2720,4227,4228],{},"不同的 Service",[2700,4230,4212],{}," 是本篇 Traefik 的配置，不是 Gateway API 的固定端口。",[3016,4233,4235],{"id":4234},"_4-创建并查看结果","4. 创建并查看结果",[3024,4237,4239],{"className":3026,"code":4238,"language":3028,"meta":3029,"style":3029},"kubectl apply -f gateway-api.yaml\n",[2700,4240,4241],{"__ignoreMap":3029},[3033,4242,4243,4245,4247,4249],{"class":3035,"line":3036},[3033,4244,3040],{"class":3039},[3033,4246,3139],{"class":3043},[3033,4248,3145],{"class":3043},[3033,4250,4251],{"class":3043}," gateway-api.yaml\n",[2696,4253,3077],{},[3024,4255,4258],{"className":4256,"code":4257,"language":3083,"meta":3029},[3081],"gatewayclass.gateway.networking.k8s.io/traefik-course created\ngateway.gateway.networking.k8s.io/orders-gateway created\nhttproute.gateway.networking.k8s.io/orders-route created\n",[2700,4259,4257],{"__ignoreMap":3029},[2696,4261,4262,4263,4266],{},"这表示三个资源已提交给 Kubernetes。 ",[2720,4264,4265],{},"提交成功不等于请求一定能访问","，还需要确认 Traefik 接受了配置：",[2696,4268,4269],{},[2720,4270,4271],{},"第一步：检查 GatewayClass。",[3024,4273,4275],{"className":3026,"code":4274,"language":3028,"meta":3029,"style":3029},"kubectl get gatewayclass traefik-course\n",[2700,4276,4277],{"__ignoreMap":3029},[3033,4278,4279,4281,4283,4286],{"class":3035,"line":3036},[3033,4280,3040],{"class":3039},[3033,4282,3055],{"class":3043},[3033,4284,4285],{"class":3043}," gatewayclass",[3033,4287,3458],{"class":3043},[2696,4289,3077],{},[3024,4291,4294],{"className":4292,"code":4293,"language":3083,"meta":3029},[3081],"NAME             CONTROLLER                      ACCEPTED   AGE\ntraefik-course   traefik.io/gateway-controller   True       25s\n",[2700,4295,4293],{"__ignoreMap":3029},[2696,4297,4298,4301],{},[2700,4299,4300],{},"ACCEPTED=True"," 表示 Traefik 已接受这个 GatewayClass。",[2696,4303,4304],{},[2720,4305,4306],{},"第二步：检查 Gateway。",[3024,4308,4310],{"className":3026,"code":4309,"language":3028,"meta":3029,"style":3029},"kubectl get gateway orders-gateway -n course\n",[2700,4311,4312],{"__ignoreMap":3029},[3033,4313,4314,4316,4318,4321,4324,4326],{"class":3035,"line":3036},[3033,4315,3040],{"class":3039},[3033,4317,3055],{"class":3043},[3033,4319,4320],{"class":3043}," gateway",[3033,4322,4323],{"class":3043}," orders-gateway",[3033,4325,3071],{"class":3043},[3033,4327,3074],{"class":3043},[2696,4329,4330,4331,4334],{},"模拟输出（",[2700,4332,4333],{},"ADDRESS"," 在 kind 中可能为空）：",[3024,4336,4339],{"className":4337,"code":4338,"language":3083,"meta":3029},[3081],"NAME             CLASS            ADDRESS   PROGRAMMED   AGE\norders-gateway   traefik-course             True         20s\n",[2700,4340,4338],{"__ignoreMap":3029},[2696,4342,4343,4346],{},[2700,4344,4345],{},"PROGRAMMED=True"," 表示 Controller 报告入口已完成相应配置；这仍不等于 HTTP 请求一定能成功。",[2696,4348,4349],{},[2720,4350,4351],{},"第三步：检查 HTTPRoute。",[3024,4353,4355],{"className":3026,"code":4354,"language":3028,"meta":3029,"style":3029},"kubectl describe httproute orders-route -n course\n",[2700,4356,4357],{"__ignoreMap":3029},[3033,4358,4359,4361,4364,4367,4370,4372],{"class":3035,"line":3036},[3033,4360,3040],{"class":3039},[3033,4362,4363],{"class":3043}," describe",[3033,4365,4366],{"class":3043}," httproute",[3033,4368,4369],{"class":3043}," orders-route",[3033,4371,3071],{"class":3043},[3033,4373,3074],{"class":3043},[2696,4375,4376],{},"模拟输出（仅截取状态部分，省略其他字段）：",[3024,4378,4381],{"className":4379,"code":4380,"language":3083,"meta":3029},[3081],"Status:\n  Parents:\n    Parent Ref:\n      Name:  orders-gateway\n    Conditions:\n      Type:    Accepted\n      Status:  True\n      Type:    ResolvedRefs\n      Status:  True\n",[2700,4382,4380],{"__ignoreMap":3029},[2696,4384,4385,4388,4389,2833,4391,4394,4395,4398],{},[2700,4386,4387],{},"Parent Ref"," 显示这条路由关联了 ",[2700,4390,3807],{},[2700,4392,4393],{},"Accepted=True"," 表示路由已被接受，",[2700,4396,4397],{},"ResolvedRefs=True"," 表示后端引用能被解析。最后还需要真正发送 HTTP 请求，验证请求是否到达应用。",[3016,4400,4402],{"id":4401},"_5-实际访问订单服务","5. 实际访问订单服务",[2696,4404,4405,4406,2833],{},"在 kind 中，我们使用端口转发让电脑暂时访问 Traefik。由于没有配置域名解析和公网负载均衡器， ",[2720,4407,4408,4409,4411],{},"即使测试成功，也不能直接在浏览器中输入 ",[2700,4410,2713],{}," 来访问",[2696,4413,4414,3844],{},[2720,4415,4416],{},"终端 A",[3024,4418,4420],{"className":3026,"code":4419,"language":3028,"meta":3029,"style":3029},"kubectl port-forward -n traefik service/traefik 8081:80\n",[2700,4421,4422],{"__ignoreMap":3029},[3033,4423,4424,4426,4429,4431,4433,4436],{"class":3035,"line":3036},[3033,4425,3040],{"class":3039},[3033,4427,4428],{"class":3043}," port-forward",[3033,4430,3071],{"class":3043},[3033,4432,3200],{"class":3043},[3033,4434,4435],{"class":3043}," service/traefik",[3033,4437,4438],{"class":3043}," 8081:80\n",[2696,4440,3077],{},[3024,4442,4445],{"className":4443,"code":4444,"language":3083,"meta":3029},[3081],"Forwarding from 127.0.0.1:8081 -> 8000\nForwarding from [::1]:8081 -> 8000\n",[2700,4446,4444],{"__ignoreMap":3029},[2696,4448,4449,4450,2833,4453,4455,4456,2833],{},"这里的端口对应关系可以回看上面的 ",[2720,4451,4452],{},"端口示意图",[2700,4454,3399],{}," 只是在你的电脑和 Traefik 之间建立临时测试通道， ",[2720,4457,4458],{},"不是为真实公网用户配置了正式访问入口",[2696,4460,4461,4464],{},[2720,4462,4463],{},"终端 B","（保持终端 A 不关闭）：",[3024,4466,4468],{"className":3026,"code":4467,"language":3028,"meta":3029,"style":3029},"curl -i -H 'Host: orders.gateway.test' http://127.0.0.1:8081/api/info\n",[2700,4469,4470],{"__ignoreMap":3029},[3033,4471,4472,4474,4477,4480,4483,4486,4489],{"class":3035,"line":3036},[3033,4473,2786],{"class":3039},[3033,4475,4476],{"class":3043}," -i",[3033,4478,4479],{"class":3043}," -H",[3033,4481,4482],{"class":3268}," '",[3033,4484,4485],{"class":3043},"Host: orders.gateway.test",[3033,4487,4488],{"class":3268},"'",[3033,4490,4491],{"class":3043}," http://127.0.0.1:8081/api/info\n",[2696,4493,4494],{},"模拟响应：",[3024,4496,4500],{"className":4497,"code":4498,"language":4499,"meta":3029,"style":3029},"language-http shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","HTTP/1.1 200 OK\nContent-Type: application/json; charset=utf-8\n\n{\"service\":\"orders\",\"version\":\"v1\"}\n","http",[2700,4501,4502,4507,4512,4518],{"__ignoreMap":3029},[3033,4503,4504],{"class":3035,"line":3036},[3033,4505,4506],{},"HTTP/1.1 200 OK\n",[3033,4508,4509],{"class":3035,"line":3050},[3033,4510,4511],{},"Content-Type: application/json; charset=utf-8\n",[3033,4513,4514],{"class":3035,"line":3061},[3033,4515,4517],{"emptyLinePlaceholder":4516},true,"\n",[3033,4519,4520],{"class":3035,"line":3234},[3033,4521,4522],{},"{\"service\":\"orders\",\"version\":\"v1\"}\n",[2696,4524,4525,4527,4528,4530,4531,4534,4535,4537,4538],{},[2700,4526,2789],{}," 请求头指定本次 HTTP 请求使用的域名，让 Traefik 能匹配 HTTPRoute 中的 ",[2700,4529,2713],{},"；因此本地测试无需修改电脑的 hosts 文件。看到 ",[2700,4532,4533],{},"200 OK","，且 JSON 与前面 Service 课程的 ",[2700,4536,2717],{}," 响应一致，才说明请求到达了 Node.js 应用。 ",[2720,4539,4540],{},"这里验证的是本地临时入口，并不是公网域名已经配置完成。",[2696,4542,4543,4544,3844],{},"再把路径改成不匹配的 ",[2700,4545,4546],{},"/other",[3024,4548,4550],{"className":3026,"code":4549,"language":3028,"meta":3029,"style":3029},"curl -i -H 'Host: orders.gateway.test' http://127.0.0.1:8081/other\n",[2700,4551,4552],{"__ignoreMap":3029},[3033,4553,4554,4556,4558,4560,4562,4564,4566],{"class":3035,"line":3036},[3033,4555,2786],{"class":3039},[3033,4557,4476],{"class":3043},[3033,4559,4479],{"class":3043},[3033,4561,4482],{"class":3268},[3033,4563,4485],{"class":3043},[3033,4565,4488],{"class":3268},[3033,4567,4568],{"class":3043}," http://127.0.0.1:8081/other\n",[2696,4570,4571],{},"在没有其他规则匹配时，可能看到：",[3024,4573,4575],{"className":4497,"code":4574,"language":4499,"meta":3029,"style":3029},"HTTP/1.1 404 Not Found\n\n404 page not found\n",[2700,4576,4577,4582,4586],{"__ignoreMap":3029},[3033,4578,4579],{"class":3035,"line":3036},[3033,4580,4581],{},"HTTP/1.1 404 Not Found\n",[3033,4583,4584],{"class":3035,"line":3050},[3033,4585,4517],{"emptyLinePlaceholder":4516},[3033,4587,4588],{"class":3035,"line":3061},[3033,4589,4590],{},"404 page not found\n",[2696,4592,4593,4594,4596,4597,4599],{},"这次不是 Pod 故障，而是 HTTPRoute 只匹配 ",[2700,4595,2917],{}," 开头的路径，",[2700,4598,4546],{}," 没有命中规则。",[2696,4601,4602,4603,4606],{},"测试结束后，在终端 A 按 ",[2700,4604,4605],{},"Ctrl+C"," 停止端口转发。Gateway API 的资源仍保留在集群中。",[2732,4608],{},[2691,4610,4612],{"id":4611},"知识问答","❓ 知识问答",[2696,4614,4615],{},[2720,4616,4617],{},"Q：已经有 Service，为什么还需要 Gateway API？",[2696,4619,4620],{},"Service 为一组 Pod 提供稳定的集群内访问入口；Gateway API 则帮助我们配置外部 HTTP 请求如何进入，并按域名和路径选择 Service。",[2696,4622,4623],{},[2720,4624,4625],{},"Q：GatewayClass、Gateway 和 HTTPRoute 会分别启动三个代理程序吗？",[2696,4627,4628],{},"不会。它们是配置资源。真正处理请求的是 Traefik 等兼容 Controller 所管理的代理程序。",[2696,4630,4631],{},[2720,4632,4633],{},"Q：Ingress 是什么？还必须学吗？",[2696,4635,4636,4637],{},"Ingress 是另一套 Kubernetes HTTP/HTTPS 入口配置 API，已有项目仍然使用它。新项目可以优先评估 Gateway API。 ",[2720,4638,4639],{},"学会本篇并不要求你先掌握 Ingress，也不需要为了同一个入口同时配置两套资源。",[2732,4641],{},[2691,4643,4645],{"id":4644},"小练习","🧪 小练习",[2696,4647,4648,4649,4651],{},"修改 ",[2700,4650,3843],{}," 中 HTTPRoute 的匹配路径：",[3024,4653,4655],{"className":3424,"code":4654,"language":3426,"meta":3029,"style":3029},"value: /orders\n",[2700,4656,4657],{"__ignoreMap":3029},[3033,4658,4659,4662,4664],{"class":3035,"line":3036},[3033,4660,4661],{"class":3433},"value",[3033,4663,3437],{"class":3268},[3033,4665,4666],{"class":3043}," /orders\n",[2696,4668,4669],{},"重新执行：",[3024,4671,4672],{"className":3026,"code":4238,"language":3028,"meta":3029,"style":3029},[2700,4673,4674],{"__ignoreMap":3029},[3033,4675,4676,4678,4680,4682],{"class":3035,"line":3036},[3033,4677,3040],{"class":3039},[3033,4679,3139],{"class":3043},[3033,4681,3145],{"class":3043},[3033,4683,4251],{"class":3043},[2696,4685,4686,4687,3844],{},"保持或者重新启动端口转发，再访问原来的 ",[2700,4688,2717],{},[3024,4690,4691],{"className":3026,"code":4467,"language":3028,"meta":3029,"style":3029},[2700,4692,4693],{"__ignoreMap":3029},[3033,4694,4695,4697,4699,4701,4703,4705,4707],{"class":3035,"line":3036},[3033,4696,2786],{"class":3039},[3033,4698,4476],{"class":3043},[3033,4700,4479],{"class":3043},[3033,4702,4482],{"class":3268},[3033,4704,4485],{"class":3043},[3033,4706,4488],{"class":3268},[3033,4708,4491],{"class":3043},[2696,4710,4711,4712,4715,4716],{},"因为路径不再匹配，且假设没有其他路由规则，预期得到 ",[2700,4713,4714],{},"404","。 ",[2720,4717,4718],{},"这说明请求被入口规则拦住，并不是订单服务代码出错。",[2696,4720,4721,4722,4724,4725,4728],{},"最后把路径恢复成 ",[2700,4723,2917],{},"，重新执行 ",[2700,4726,4727],{},"kubectl apply","，确认接口恢复返回 JSON。",[2696,4730,4731,4734,4735,4737],{},[2720,4732,4733],{},"验收标准："," 能用自己的话解释 GatewayClass、Gateway、HTTPRoute 三者的职责，并通过修改路径观察正常访问与 ",[2700,4736,4714],{}," 的区别。",[2732,4739],{},[2696,4741,4742],{},"🎉 恭喜你！你已经理解为什么订单 Service 之外还需要 HTTP 入口，并使用 Gateway API 完成了从本机模拟 HTTP 请求到 Node.js Pod 的访问验证。",[4744,4745,4746],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sYGMc, html code.shiki .sYGMc{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sIEYB, html code.shiki .sIEYB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sndM8, html code.shiki .sndM8{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .smPcV, html code.shiki .smPcV{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .s86vT, html code.shiki .s86vT{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sd2Uz, html code.shiki .sd2Uz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .syuKq, html code.shiki .syuKq{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}",{"title":3029,"searchDepth":3050,"depth":3050,"links":4748},[4749,4750,4751,4752,4759,4760],{"id":2693,"depth":3050,"text":2694},{"id":2736,"depth":3050,"text":2737},{"id":2838,"depth":3050,"text":2839},{"id":2956,"depth":3050,"text":2957,"children":4753},[4754,4755,4756,4757,4758],{"id":3018,"depth":3061,"text":3019},{"id":3120,"depth":3061,"text":3121},{"id":3405,"depth":3061,"text":3406},{"id":4234,"depth":3061,"text":4235},{"id":4401,"depth":3061,"text":4402},{"id":4611,"depth":3050,"text":4612},{"id":4644,"depth":3050,"text":4645},"从浏览器访问 Kubernetes 订单服务的问题出发，理解 Gateway API 的核心资源，并使用 Traefik 配置和验证 HTTP 入口。","md",null,{},{"title":2595},{"title":2595,"description":4761},"LYF2GnNfDi",[4769,4771],{"title":2586,"path":2587,"stem":2588,"description":4770,"children":-1},"理解 Pod 地址变化带来的问题，使用 Service 为 Node.js 订单服务提供稳定的集群内部访问入口。",{"title":2599,"path":2600,"stem":2601,"description":4772,"children":-1},"从订单服务的环境配置出发，理解 ConfigMap 与 Secret，学会将配置交给 Node.js 容器，并验证更新何时生效。",1795141025692]