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