[{"data":1,"prerenderedAt":5248},["ShallowReactive",2],{"site-navigation-docs":3,"page-docs-/document/ai-security/protection/resource-protection":2945,"surround-docs-/document/ai-security/protection/resource-protection":5243},{"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,2881],{"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],{"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,"icon":2883,"path":2884,"stem":2885,"children":2886,"page":44},"AI 安全","i-lucide-shield-check","/document/ai-security","document/66.ai-security",[2887,2902,2921],{"title":2888,"path":2889,"stem":2890,"children":2891,"icon":1922},"AI 安全基础","/document/ai-security/guide","document/66.ai-security/01.guide/01.index",[2892,2894,2898],{"title":2893,"path":2889,"stem":2890},"AI 安全概览",{"title":2895,"path":2896,"stem":2897},"提示词注入","/document/ai-security/guide/prompt-injection","document/66.ai-security/01.guide/02.prompt-injection",{"title":2899,"path":2900,"stem":2901},"敏感数据保护","/document/ai-security/guide/sensitive-data","document/66.ai-security/01.guide/03.sensitive-data",{"title":2903,"path":2904,"stem":2905,"children":2906,"icon":2883},"AI 应用安全防护","/document/ai-security/protection","document/66.ai-security/02.protection/01.index",[2907,2909,2913,2917],{"title":2908,"path":2904,"stem":2905},"输入安全与内容审核",{"title":2910,"path":2911,"stem":2912},"模型输出安全","/document/ai-security/protection/output-safety","document/66.ai-security/02.protection/02.output-safety",{"title":2914,"path":2915,"stem":2916},"资源消耗防护","/document/ai-security/protection/resource-protection","document/66.ai-security/02.protection/03.resource-protection",{"title":2918,"path":2919,"stem":2920},"Token 与成本控制","/document/ai-security/protection/token-cost","document/66.ai-security/02.protection/04.token-cost",{"title":2922,"path":2923,"stem":2924,"children":2925,"icon":2944},"高级安全防护","/document/ai-security/advanced","document/66.ai-security/03.advanced/01.index",[2926,2928,2932,2936,2940],{"title":2927,"path":2923,"stem":2924},"RAG 安全",{"title":2929,"path":2930,"stem":2931},"MCP 安全","/document/ai-security/advanced/mcp-security","document/66.ai-security/03.advanced/02.mcp-security",{"title":2933,"path":2934,"stem":2935},"Agent 权限与执行安全","/document/ai-security/advanced/agent-execution","document/66.ai-security/03.advanced/03.agent-execution",{"title":2937,"path":2938,"stem":2939},"Agent 记忆与上下文安全","/document/ai-security/advanced/agent-context","document/66.ai-security/03.advanced/04.agent-context",{"title":2941,"path":2942,"stem":2943},"AI 安全测试","/document/ai-security/advanced/security-testing","document/66.ai-security/03.advanced/05.security-testing","i-lucide-lock-keyhole",{"id":2946,"title":2914,"body":2947,"description":5236,"extension":5237,"links":5238,"meta":5239,"navigation":5240,"path":2915,"seo":5241,"stem":2916,"__hash__":5242},"docs/document/66.ai-security/02.protection/03.resource-protection.md",{"type":2948,"value":2949,"toc":5220},"minimal",[2950,2955,2959,2962,2966,2969,2972,2974,2978,2981,2989,3312,3318,3496,3503,3535,3538,3540,3544,3547,3553,3829,3833,3839,4102,4107,4127,4134,4137,4143,4198,4201,4229,4232,4235,4276,4278,4299,4312,4325,4327,4331,4338,4390,4393,4404,4409,4702,4708,4717,4723,4726,4733,4773,4779,5156,5162,5171,5174,5179,5181,5185,5188,5191,5193,5197,5205,5211,5213,5216],[2951,2952,2954],"h2",{"id":2953},"引言","🎯 引言",[2956,2957,2958],"p",{},"高频请求和大量并发任务可能占满 AI 应用的连接与计算资源，长时间等待模型响应也会持续占用资源。本篇将实现用户级限流、用户与应用级并发限制，并使用 OpenAI SDK 设置超时和主动取消请求。",[2960,2961],"hr",{},[2951,2963,2965],{"id":2964},"认识资源消耗风险","🧱 认识资源消耗风险",[2967,2968],"ai-security-resource-cost",{},[2956,2970,2971],{},"即使并发限制为 1，用户仍可连续发起大量请求，因此需要同时限制请求频率与并发数量。",[2960,2973],{},[2951,2975,2977],{"id":2976},"限制请求频率","🛠 限制请求频率",[2956,2979,2980],{},"以 AI 文本问答接口为例，每个用户每分钟最多发起 10 次请求。以下示例使用 Node.js 22，额度数值仅用于教学。",[2956,2982,2983,2984,2988],{},"创建 ",[2985,2986,2987],"code",{},"guard.mjs","：",[2990,2991,2996],"pre",{"className":2992,"code":2993,"language":2994,"meta":2995,"style":2995},"language-js shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","const windows = new Map();\n\nexport function checkRate(userId) {\n    const now = Date.now();\n    let window = windows.get(userId);\n\n    if (!window || now - window.start >= 60000) {\n        window = { start: now, count: 0 };\n        windows.set(userId, window);\n    }\n\n    if (window.count >= 10) {\n        throw new Error('RATE_LIMIT');\n    }\n\n    window.count += 1;\n}\n","js","",[2985,2997,2998,3028,3035,3061,3087,3114,3119,3162,3195,3218,3224,3229,3252,3278,3283,3288,3306],{"__ignoreMap":2995},[2999,3000,3003,3007,3011,3015,3018,3022,3025],"span",{"class":3001,"line":3002},"line",1,[2999,3004,3006],{"class":3005},"s50WR","const",[2999,3008,3010],{"class":3009},"sndM8"," windows ",[2999,3012,3014],{"class":3013},"s86vT","=",[2999,3016,3017],{"class":3013}," new",[2999,3019,3021],{"class":3020},"swgpB"," Map",[2999,3023,3024],{"class":3009},"()",[2999,3026,3027],{"class":3013},";\n",[2999,3029,3031],{"class":3001,"line":3030},2,[2999,3032,3034],{"emptyLinePlaceholder":3033},true,"\n",[2999,3036,3038,3042,3045,3048,3051,3055,3058],{"class":3001,"line":3037},3,[2999,3039,3041],{"class":3040},"s8pZq","export",[2999,3043,3044],{"class":3005}," function",[2999,3046,3047],{"class":3020}," checkRate",[2999,3049,3050],{"class":3013},"(",[2999,3052,3054],{"class":3053},"sK9QF","userId",[2999,3056,3057],{"class":3013},")",[2999,3059,3060],{"class":3013}," {\n",[2999,3062,3064,3067,3070,3073,3076,3079,3082,3085],{"class":3001,"line":3063},4,[2999,3065,3066],{"class":3005},"    const",[2999,3068,3069],{"class":3009}," now",[2999,3071,3072],{"class":3013}," =",[2999,3074,3075],{"class":3009}," Date",[2999,3077,3078],{"class":3013},".",[2999,3080,3081],{"class":3020},"now",[2999,3083,3024],{"class":3084},"sd2Uz",[2999,3086,3027],{"class":3013},[2999,3088,3090,3093,3096,3098,3101,3103,3106,3108,3110,3112],{"class":3001,"line":3089},5,[2999,3091,3092],{"class":3005},"    let",[2999,3094,3095],{"class":3009}," window",[2999,3097,3072],{"class":3013},[2999,3099,3100],{"class":3009}," windows",[2999,3102,3078],{"class":3013},[2999,3104,3105],{"class":3020},"get",[2999,3107,3050],{"class":3084},[2999,3109,3054],{"class":3009},[2999,3111,3057],{"class":3084},[2999,3113,3027],{"class":3013},[2999,3115,3117],{"class":3001,"line":3116},6,[2999,3118,3034],{"emptyLinePlaceholder":3033},[2999,3120,3122,3125,3128,3131,3134,3137,3139,3142,3144,3146,3149,3152,3156,3159],{"class":3001,"line":3121},7,[2999,3123,3124],{"class":3040},"    if",[2999,3126,3127],{"class":3084}," (",[2999,3129,3130],{"class":3013},"!",[2999,3132,3133],{"class":3009},"window",[2999,3135,3136],{"class":3013}," ||",[2999,3138,3069],{"class":3009},[2999,3140,3141],{"class":3013}," -",[2999,3143,3095],{"class":3009},[2999,3145,3078],{"class":3013},[2999,3147,3148],{"class":3009},"start",[2999,3150,3151],{"class":3013}," >=",[2999,3153,3155],{"class":3154},"smPcV"," 60000",[2999,3157,3158],{"class":3084},") ",[2999,3160,3161],{"class":3013},"{\n",[2999,3163,3165,3168,3170,3173,3176,3179,3181,3184,3187,3189,3192],{"class":3001,"line":3164},8,[2999,3166,3167],{"class":3009},"        window",[2999,3169,3072],{"class":3013},[2999,3171,3172],{"class":3013}," {",[2999,3174,3175],{"class":3084}," start",[2999,3177,3178],{"class":3013},":",[2999,3180,3069],{"class":3009},[2999,3182,3183],{"class":3013},",",[2999,3185,3186],{"class":3084}," count",[2999,3188,3178],{"class":3013},[2999,3190,3191],{"class":3154}," 0",[2999,3193,3194],{"class":3013}," };\n",[2999,3196,3198,3201,3203,3206,3208,3210,3212,3214,3216],{"class":3001,"line":3197},9,[2999,3199,3200],{"class":3009},"        windows",[2999,3202,3078],{"class":3013},[2999,3204,3205],{"class":3020},"set",[2999,3207,3050],{"class":3084},[2999,3209,3054],{"class":3009},[2999,3211,3183],{"class":3013},[2999,3213,3095],{"class":3009},[2999,3215,3057],{"class":3084},[2999,3217,3027],{"class":3013},[2999,3219,3221],{"class":3001,"line":3220},10,[2999,3222,3223],{"class":3013},"    }\n",[2999,3225,3227],{"class":3001,"line":3226},11,[2999,3228,3034],{"emptyLinePlaceholder":3033},[2999,3230,3232,3234,3236,3238,3240,3243,3245,3248,3250],{"class":3001,"line":3231},12,[2999,3233,3124],{"class":3040},[2999,3235,3127],{"class":3084},[2999,3237,3133],{"class":3009},[2999,3239,3078],{"class":3013},[2999,3241,3242],{"class":3009},"count",[2999,3244,3151],{"class":3013},[2999,3246,3247],{"class":3154}," 10",[2999,3249,3158],{"class":3084},[2999,3251,3161],{"class":3013},[2999,3253,3255,3258,3260,3263,3265,3268,3272,3274,3276],{"class":3001,"line":3254},13,[2999,3256,3257],{"class":3040},"        throw",[2999,3259,3017],{"class":3013},[2999,3261,3262],{"class":3020}," Error",[2999,3264,3050],{"class":3084},[2999,3266,3267],{"class":3013},"'",[2999,3269,3271],{"class":3270},"sIEYB","RATE_LIMIT",[2999,3273,3267],{"class":3013},[2999,3275,3057],{"class":3084},[2999,3277,3027],{"class":3013},[2999,3279,3281],{"class":3001,"line":3280},14,[2999,3282,3223],{"class":3013},[2999,3284,3286],{"class":3001,"line":3285},15,[2999,3287,3034],{"emptyLinePlaceholder":3033},[2999,3289,3291,3294,3296,3298,3301,3304],{"class":3001,"line":3290},16,[2999,3292,3293],{"class":3009},"    window",[2999,3295,3078],{"class":3013},[2999,3297,3242],{"class":3009},[2999,3299,3300],{"class":3013}," +=",[2999,3302,3303],{"class":3154}," 1",[2999,3305,3027],{"class":3013},[2999,3307,3309],{"class":3001,"line":3308},17,[2999,3310,3311],{"class":3013},"}\n",[2956,3313,2983,3314,3317],{},[2985,3315,3316],{},"test-rate.mjs","，连续提交 11 次请求：",[2990,3319,3321],{"className":2992,"code":3320,"language":2994,"meta":2995,"style":2995},"import { checkRate } from './guard.mjs';\n\nfor (let i = 1; i \u003C= 11; i++) {\n    try {\n        checkRate('user-1');\n        console.log(i, 'PASS');\n    } catch (error) {\n        console.log(i, error.message);\n    }\n}\n",[2985,3322,3323,3348,3352,3392,3399,3417,3445,3462,3488,3492],{"__ignoreMap":2995},[2999,3324,3325,3328,3330,3332,3335,3338,3341,3344,3346],{"class":3001,"line":3002},[2999,3326,3327],{"class":3040},"import",[2999,3329,3172],{"class":3013},[2999,3331,3047],{"class":3009},[2999,3333,3334],{"class":3013}," }",[2999,3336,3337],{"class":3040}," from",[2999,3339,3340],{"class":3013}," '",[2999,3342,3343],{"class":3270},"./guard.mjs",[2999,3345,3267],{"class":3013},[2999,3347,3027],{"class":3013},[2999,3349,3350],{"class":3001,"line":3030},[2999,3351,3034],{"emptyLinePlaceholder":3033},[2999,3353,3354,3357,3359,3362,3365,3367,3369,3372,3374,3377,3380,3382,3385,3388,3390],{"class":3001,"line":3037},[2999,3355,3356],{"class":3040},"for",[2999,3358,3127],{"class":3009},[2999,3360,3361],{"class":3005},"let",[2999,3363,3364],{"class":3009}," i ",[2999,3366,3014],{"class":3013},[2999,3368,3303],{"class":3154},[2999,3370,3371],{"class":3013},";",[2999,3373,3364],{"class":3009},[2999,3375,3376],{"class":3013},"\u003C=",[2999,3378,3379],{"class":3154}," 11",[2999,3381,3371],{"class":3013},[2999,3383,3384],{"class":3009}," i",[2999,3386,3387],{"class":3013},"++",[2999,3389,3158],{"class":3009},[2999,3391,3161],{"class":3013},[2999,3393,3394,3397],{"class":3001,"line":3063},[2999,3395,3396],{"class":3040},"    try",[2999,3398,3060],{"class":3013},[2999,3400,3401,3404,3406,3408,3411,3413,3415],{"class":3001,"line":3089},[2999,3402,3403],{"class":3020},"        checkRate",[2999,3405,3050],{"class":3084},[2999,3407,3267],{"class":3013},[2999,3409,3410],{"class":3270},"user-1",[2999,3412,3267],{"class":3013},[2999,3414,3057],{"class":3084},[2999,3416,3027],{"class":3013},[2999,3418,3419,3422,3424,3427,3429,3432,3434,3436,3439,3441,3443],{"class":3001,"line":3116},[2999,3420,3421],{"class":3009},"        console",[2999,3423,3078],{"class":3013},[2999,3425,3426],{"class":3020},"log",[2999,3428,3050],{"class":3084},[2999,3430,3431],{"class":3009},"i",[2999,3433,3183],{"class":3013},[2999,3435,3340],{"class":3013},[2999,3437,3438],{"class":3270},"PASS",[2999,3440,3267],{"class":3013},[2999,3442,3057],{"class":3084},[2999,3444,3027],{"class":3013},[2999,3446,3447,3450,3453,3455,3458,3460],{"class":3001,"line":3121},[2999,3448,3449],{"class":3013},"    }",[2999,3451,3452],{"class":3040}," catch",[2999,3454,3127],{"class":3084},[2999,3456,3457],{"class":3009},"error",[2999,3459,3158],{"class":3084},[2999,3461,3161],{"class":3013},[2999,3463,3464,3466,3468,3470,3472,3474,3476,3479,3481,3484,3486],{"class":3001,"line":3164},[2999,3465,3421],{"class":3009},[2999,3467,3078],{"class":3013},[2999,3469,3426],{"class":3020},[2999,3471,3050],{"class":3084},[2999,3473,3431],{"class":3009},[2999,3475,3183],{"class":3013},[2999,3477,3478],{"class":3009}," error",[2999,3480,3078],{"class":3013},[2999,3482,3483],{"class":3009},"message",[2999,3485,3057],{"class":3084},[2999,3487,3027],{"class":3013},[2999,3489,3490],{"class":3001,"line":3197},[2999,3491,3223],{"class":3013},[2999,3493,3494],{"class":3001,"line":3220},[2999,3495,3311],{"class":3013},[2956,3497,3498,3499,3502],{},"运行 ",[2985,3500,3501],{},"node test-rate.mjs","，输出节选：",[2990,3504,3508],{"className":3505,"code":3506,"language":3507,"meta":2995,"style":2995},"language-console shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","1 PASS\n2 PASS\n...\n10 PASS\n11 RATE_LIMIT\n","console",[2985,3509,3510,3515,3520,3525,3530],{"__ignoreMap":2995},[2999,3511,3512],{"class":3001,"line":3002},[2999,3513,3514],{},"1 PASS\n",[2999,3516,3517],{"class":3001,"line":3030},[2999,3518,3519],{},"2 PASS\n",[2999,3521,3522],{"class":3001,"line":3037},[2999,3523,3524],{},"...\n",[2999,3526,3527],{"class":3001,"line":3063},[2999,3528,3529],{},"10 PASS\n",[2999,3531,3532],{"class":3001,"line":3089},[2999,3533,3534],{},"11 RATE_LIMIT\n",[2956,3536,3537],{},"限流统计的是获准进入后续处理的请求次数，而不是成功生成回答的次数。实际接口应在身份认证后、分词前执行限流。固定窗口交界处可能出现短时间的请求集中。",[2960,3539],{},[2951,3541,3543],{"id":3542},"限制并发数量","🛠 限制并发数量",[2956,3545,3546],{},"只限制每个用户的并发数还不够：100 个用户同时发起请求，仍然可能占用 100 个模型连接。",[2956,3548,3549,3550,3552],{},"在 ",[2985,3551,2987],{}," 末尾追加：每个用户最多同时执行 1 个任务，整个应用最多同时执行 2 个任务。",[2990,3554,3556],{"className":2992,"code":3555,"language":2994,"meta":2995,"style":2995},"const activeUsers = new Set();\nlet appActive = 0;\n\nexport async function withConcurrency(userId, task) {\n    if (activeUsers.has(userId)) {\n        throw new Error('USER_CONCURRENT_LIMIT');\n    }\n\n    if (appActive >= 2) {\n        throw new Error('APP_CONCURRENT_LIMIT');\n    }\n\n    // 单进程内同步检查并占用槽位，避免任务同时通过检查\n    activeUsers.add(userId);\n    appActive += 1;\n\n    try {\n        return await task();\n    } finally {\n        activeUsers.delete(userId);\n        appActive -= 1;\n    }\n}\n",[2985,3557,3558,3576,3589,3593,3618,3641,3662,3666,3670,3688,3709,3713,3717,3723,3741,3752,3756,3762,3777,3787,3806,3819,3824],{"__ignoreMap":2995},[2999,3559,3560,3562,3565,3567,3569,3572,3574],{"class":3001,"line":3002},[2999,3561,3006],{"class":3005},[2999,3563,3564],{"class":3009}," activeUsers ",[2999,3566,3014],{"class":3013},[2999,3568,3017],{"class":3013},[2999,3570,3571],{"class":3020}," Set",[2999,3573,3024],{"class":3009},[2999,3575,3027],{"class":3013},[2999,3577,3578,3580,3583,3585,3587],{"class":3001,"line":3030},[2999,3579,3361],{"class":3005},[2999,3581,3582],{"class":3009}," appActive ",[2999,3584,3014],{"class":3013},[2999,3586,3191],{"class":3154},[2999,3588,3027],{"class":3013},[2999,3590,3591],{"class":3001,"line":3037},[2999,3592,3034],{"emptyLinePlaceholder":3033},[2999,3594,3595,3597,3600,3602,3605,3607,3609,3611,3614,3616],{"class":3001,"line":3063},[2999,3596,3041],{"class":3040},[2999,3598,3599],{"class":3005}," async",[2999,3601,3044],{"class":3005},[2999,3603,3604],{"class":3020}," withConcurrency",[2999,3606,3050],{"class":3013},[2999,3608,3054],{"class":3053},[2999,3610,3183],{"class":3013},[2999,3612,3613],{"class":3053}," task",[2999,3615,3057],{"class":3013},[2999,3617,3060],{"class":3013},[2999,3619,3620,3622,3624,3627,3629,3632,3634,3636,3639],{"class":3001,"line":3089},[2999,3621,3124],{"class":3040},[2999,3623,3127],{"class":3084},[2999,3625,3626],{"class":3009},"activeUsers",[2999,3628,3078],{"class":3013},[2999,3630,3631],{"class":3020},"has",[2999,3633,3050],{"class":3084},[2999,3635,3054],{"class":3009},[2999,3637,3638],{"class":3084},")) ",[2999,3640,3161],{"class":3013},[2999,3642,3643,3645,3647,3649,3651,3653,3656,3658,3660],{"class":3001,"line":3116},[2999,3644,3257],{"class":3040},[2999,3646,3017],{"class":3013},[2999,3648,3262],{"class":3020},[2999,3650,3050],{"class":3084},[2999,3652,3267],{"class":3013},[2999,3654,3655],{"class":3270},"USER_CONCURRENT_LIMIT",[2999,3657,3267],{"class":3013},[2999,3659,3057],{"class":3084},[2999,3661,3027],{"class":3013},[2999,3663,3664],{"class":3001,"line":3121},[2999,3665,3223],{"class":3013},[2999,3667,3668],{"class":3001,"line":3164},[2999,3669,3034],{"emptyLinePlaceholder":3033},[2999,3671,3672,3674,3676,3679,3681,3684,3686],{"class":3001,"line":3197},[2999,3673,3124],{"class":3040},[2999,3675,3127],{"class":3084},[2999,3677,3678],{"class":3009},"appActive",[2999,3680,3151],{"class":3013},[2999,3682,3683],{"class":3154}," 2",[2999,3685,3158],{"class":3084},[2999,3687,3161],{"class":3013},[2999,3689,3690,3692,3694,3696,3698,3700,3703,3705,3707],{"class":3001,"line":3220},[2999,3691,3257],{"class":3040},[2999,3693,3017],{"class":3013},[2999,3695,3262],{"class":3020},[2999,3697,3050],{"class":3084},[2999,3699,3267],{"class":3013},[2999,3701,3702],{"class":3270},"APP_CONCURRENT_LIMIT",[2999,3704,3267],{"class":3013},[2999,3706,3057],{"class":3084},[2999,3708,3027],{"class":3013},[2999,3710,3711],{"class":3001,"line":3226},[2999,3712,3223],{"class":3013},[2999,3714,3715],{"class":3001,"line":3231},[2999,3716,3034],{"emptyLinePlaceholder":3033},[2999,3718,3719],{"class":3001,"line":3254},[2999,3720,3722],{"class":3721},"syuKq","    // 单进程内同步检查并占用槽位，避免任务同时通过检查\n",[2999,3724,3725,3728,3730,3733,3735,3737,3739],{"class":3001,"line":3280},[2999,3726,3727],{"class":3009},"    activeUsers",[2999,3729,3078],{"class":3013},[2999,3731,3732],{"class":3020},"add",[2999,3734,3050],{"class":3084},[2999,3736,3054],{"class":3009},[2999,3738,3057],{"class":3084},[2999,3740,3027],{"class":3013},[2999,3742,3743,3746,3748,3750],{"class":3001,"line":3285},[2999,3744,3745],{"class":3009},"    appActive",[2999,3747,3300],{"class":3013},[2999,3749,3303],{"class":3154},[2999,3751,3027],{"class":3013},[2999,3753,3754],{"class":3001,"line":3290},[2999,3755,3034],{"emptyLinePlaceholder":3033},[2999,3757,3758,3760],{"class":3001,"line":3308},[2999,3759,3396],{"class":3040},[2999,3761,3060],{"class":3013},[2999,3763,3765,3768,3771,3773,3775],{"class":3001,"line":3764},18,[2999,3766,3767],{"class":3040},"        return",[2999,3769,3770],{"class":3040}," await",[2999,3772,3613],{"class":3020},[2999,3774,3024],{"class":3084},[2999,3776,3027],{"class":3013},[2999,3778,3780,3782,3785],{"class":3001,"line":3779},19,[2999,3781,3449],{"class":3013},[2999,3783,3784],{"class":3040}," finally",[2999,3786,3060],{"class":3013},[2999,3788,3790,3793,3795,3798,3800,3802,3804],{"class":3001,"line":3789},20,[2999,3791,3792],{"class":3009},"        activeUsers",[2999,3794,3078],{"class":3013},[2999,3796,3797],{"class":3020},"delete",[2999,3799,3050],{"class":3084},[2999,3801,3054],{"class":3009},[2999,3803,3057],{"class":3084},[2999,3805,3027],{"class":3013},[2999,3807,3809,3812,3815,3817],{"class":3001,"line":3808},21,[2999,3810,3811],{"class":3009},"        appActive",[2999,3813,3814],{"class":3013}," -=",[2999,3816,3303],{"class":3154},[2999,3818,3027],{"class":3013},[2999,3820,3822],{"class":3001,"line":3821},22,[2999,3823,3223],{"class":3013},[2999,3825,3827],{"class":3001,"line":3826},23,[2999,3828,3311],{"class":3013},[3830,3831,3832],"h3",{"id":3832},"测试用户级并发限制",[2956,3834,2983,3835,3838],{},[2985,3836,3837],{},"test-concurrency.mjs","，使用耗时 1 秒的任务模拟模型请求：",[2990,3840,3842],{"className":2992,"code":3841,"language":2994,"meta":2995,"style":2995},"import { setTimeout as delay } from 'node:timers/promises';\nimport { withConcurrency } from './guard.mjs';\n\nasync function request(userId) {\n    try {\n        await withConcurrency(userId, async () => {\n            console.log(userId, '开始请求');\n            await delay(1000);\n            console.log(userId, '请求完成');\n        });\n    } catch (error) {\n        console.log(userId, error.message);\n    }\n}\n\nrequest('user-1');\nrequest('user-1');\n",[2985,3843,3844,3872,3892,3896,3914,3920,3943,3969,3985,4010,4019,4033,4057,4061,4065,4069,4086],{"__ignoreMap":2995},[2999,3845,3846,3848,3850,3853,3856,3859,3861,3863,3865,3868,3870],{"class":3001,"line":3002},[2999,3847,3327],{"class":3040},[2999,3849,3172],{"class":3013},[2999,3851,3852],{"class":3009}," setTimeout",[2999,3854,3855],{"class":3040}," as",[2999,3857,3858],{"class":3009}," delay",[2999,3860,3334],{"class":3013},[2999,3862,3337],{"class":3040},[2999,3864,3340],{"class":3013},[2999,3866,3867],{"class":3270},"node:timers/promises",[2999,3869,3267],{"class":3013},[2999,3871,3027],{"class":3013},[2999,3873,3874,3876,3878,3880,3882,3884,3886,3888,3890],{"class":3001,"line":3030},[2999,3875,3327],{"class":3040},[2999,3877,3172],{"class":3013},[2999,3879,3604],{"class":3009},[2999,3881,3334],{"class":3013},[2999,3883,3337],{"class":3040},[2999,3885,3340],{"class":3013},[2999,3887,3343],{"class":3270},[2999,3889,3267],{"class":3013},[2999,3891,3027],{"class":3013},[2999,3893,3894],{"class":3001,"line":3037},[2999,3895,3034],{"emptyLinePlaceholder":3033},[2999,3897,3898,3901,3903,3906,3908,3910,3912],{"class":3001,"line":3063},[2999,3899,3900],{"class":3005},"async",[2999,3902,3044],{"class":3005},[2999,3904,3905],{"class":3020}," request",[2999,3907,3050],{"class":3013},[2999,3909,3054],{"class":3053},[2999,3911,3057],{"class":3013},[2999,3913,3060],{"class":3013},[2999,3915,3916,3918],{"class":3001,"line":3089},[2999,3917,3396],{"class":3040},[2999,3919,3060],{"class":3013},[2999,3921,3922,3925,3927,3929,3931,3933,3935,3938,3941],{"class":3001,"line":3116},[2999,3923,3924],{"class":3040},"        await",[2999,3926,3604],{"class":3020},[2999,3928,3050],{"class":3084},[2999,3930,3054],{"class":3009},[2999,3932,3183],{"class":3013},[2999,3934,3599],{"class":3005},[2999,3936,3937],{"class":3013}," ()",[2999,3939,3940],{"class":3005}," =>",[2999,3942,3060],{"class":3013},[2999,3944,3945,3948,3950,3952,3954,3956,3958,3960,3963,3965,3967],{"class":3001,"line":3121},[2999,3946,3947],{"class":3009},"            console",[2999,3949,3078],{"class":3013},[2999,3951,3426],{"class":3020},[2999,3953,3050],{"class":3084},[2999,3955,3054],{"class":3009},[2999,3957,3183],{"class":3013},[2999,3959,3340],{"class":3013},[2999,3961,3962],{"class":3270},"开始请求",[2999,3964,3267],{"class":3013},[2999,3966,3057],{"class":3084},[2999,3968,3027],{"class":3013},[2999,3970,3971,3974,3976,3978,3981,3983],{"class":3001,"line":3164},[2999,3972,3973],{"class":3040},"            await",[2999,3975,3858],{"class":3020},[2999,3977,3050],{"class":3084},[2999,3979,3980],{"class":3154},"1000",[2999,3982,3057],{"class":3084},[2999,3984,3027],{"class":3013},[2999,3986,3987,3989,3991,3993,3995,3997,3999,4001,4004,4006,4008],{"class":3001,"line":3197},[2999,3988,3947],{"class":3009},[2999,3990,3078],{"class":3013},[2999,3992,3426],{"class":3020},[2999,3994,3050],{"class":3084},[2999,3996,3054],{"class":3009},[2999,3998,3183],{"class":3013},[2999,4000,3340],{"class":3013},[2999,4002,4003],{"class":3270},"请求完成",[2999,4005,3267],{"class":3013},[2999,4007,3057],{"class":3084},[2999,4009,3027],{"class":3013},[2999,4011,4012,4015,4017],{"class":3001,"line":3220},[2999,4013,4014],{"class":3013},"        }",[2999,4016,3057],{"class":3084},[2999,4018,3027],{"class":3013},[2999,4020,4021,4023,4025,4027,4029,4031],{"class":3001,"line":3226},[2999,4022,3449],{"class":3013},[2999,4024,3452],{"class":3040},[2999,4026,3127],{"class":3084},[2999,4028,3457],{"class":3009},[2999,4030,3158],{"class":3084},[2999,4032,3161],{"class":3013},[2999,4034,4035,4037,4039,4041,4043,4045,4047,4049,4051,4053,4055],{"class":3001,"line":3231},[2999,4036,3421],{"class":3009},[2999,4038,3078],{"class":3013},[2999,4040,3426],{"class":3020},[2999,4042,3050],{"class":3084},[2999,4044,3054],{"class":3009},[2999,4046,3183],{"class":3013},[2999,4048,3478],{"class":3009},[2999,4050,3078],{"class":3013},[2999,4052,3483],{"class":3009},[2999,4054,3057],{"class":3084},[2999,4056,3027],{"class":3013},[2999,4058,4059],{"class":3001,"line":3254},[2999,4060,3223],{"class":3013},[2999,4062,4063],{"class":3001,"line":3280},[2999,4064,3311],{"class":3013},[2999,4066,4067],{"class":3001,"line":3285},[2999,4068,3034],{"emptyLinePlaceholder":3033},[2999,4070,4071,4074,4076,4078,4080,4082,4084],{"class":3001,"line":3290},[2999,4072,4073],{"class":3020},"request",[2999,4075,3050],{"class":3009},[2999,4077,3267],{"class":3013},[2999,4079,3410],{"class":3270},[2999,4081,3267],{"class":3013},[2999,4083,3057],{"class":3009},[2999,4085,3027],{"class":3013},[2999,4087,4088,4090,4092,4094,4096,4098,4100],{"class":3001,"line":3308},[2999,4089,4073],{"class":3020},[2999,4091,3050],{"class":3009},[2999,4093,3267],{"class":3013},[2999,4095,3410],{"class":3270},[2999,4097,3267],{"class":3013},[2999,4099,3057],{"class":3009},[2999,4101,3027],{"class":3013},[2956,4103,3498,4104,2988],{},[2985,4105,4106],{},"node test-concurrency.mjs",[2990,4108,4110],{"className":3505,"code":4109,"language":3507,"meta":2995,"style":2995},"user-1 开始请求\nuser-1 USER_CONCURRENT_LIMIT\nuser-1 请求完成\n",[2985,4111,4112,4117,4122],{"__ignoreMap":2995},[2999,4113,4114],{"class":3001,"line":3002},[2999,4115,4116],{},"user-1 开始请求\n",[2999,4118,4119],{"class":3001,"line":3030},[2999,4120,4121],{},"user-1 USER_CONCURRENT_LIMIT\n",[2999,4123,4124],{"class":3001,"line":3037},[2999,4125,4126],{},"user-1 请求完成\n",[2956,4128,4129,4130,4133],{},"两次调用之间没有 ",[2985,4131,4132],{},"await","，因此第二次请求会在第一次完成前进入并发检查。",[3830,4135,4136],{"id":4136},"测试应用级并发限制",[2956,4138,4139,4140,4142],{},"将 ",[2985,4141,3837],{}," 末尾的两行请求替换为：",[2990,4144,4146],{"className":2992,"code":4145,"language":2994,"meta":2995,"style":2995},"request('user-1');\nrequest('user-2');\nrequest('user-3');\n",[2985,4147,4148,4164,4181],{"__ignoreMap":2995},[2999,4149,4150,4152,4154,4156,4158,4160,4162],{"class":3001,"line":3002},[2999,4151,4073],{"class":3020},[2999,4153,3050],{"class":3009},[2999,4155,3267],{"class":3013},[2999,4157,3410],{"class":3270},[2999,4159,3267],{"class":3013},[2999,4161,3057],{"class":3009},[2999,4163,3027],{"class":3013},[2999,4165,4166,4168,4170,4172,4175,4177,4179],{"class":3001,"line":3030},[2999,4167,4073],{"class":3020},[2999,4169,3050],{"class":3009},[2999,4171,3267],{"class":3013},[2999,4173,4174],{"class":3270},"user-2",[2999,4176,3267],{"class":3013},[2999,4178,3057],{"class":3009},[2999,4180,3027],{"class":3013},[2999,4182,4183,4185,4187,4189,4192,4194,4196],{"class":3001,"line":3037},[2999,4184,4073],{"class":3020},[2999,4186,3050],{"class":3009},[2999,4188,3267],{"class":3013},[2999,4190,4191],{"class":3270},"user-3",[2999,4193,3267],{"class":3013},[2999,4195,3057],{"class":3009},[2999,4197,3027],{"class":3013},[2956,4199,4200],{},"重新运行，输出：",[2990,4202,4204],{"className":3505,"code":4203,"language":3507,"meta":2995,"style":2995},"user-1 开始请求\nuser-2 开始请求\nuser-3 APP_CONCURRENT_LIMIT\nuser-1 请求完成\nuser-2 请求完成\n",[2985,4205,4206,4210,4215,4220,4224],{"__ignoreMap":2995},[2999,4207,4208],{"class":3001,"line":3002},[2999,4209,4116],{},[2999,4211,4212],{"class":3001,"line":3030},[2999,4213,4214],{},"user-2 开始请求\n",[2999,4216,4217],{"class":3001,"line":3037},[2999,4218,4219],{},"user-3 APP_CONCURRENT_LIMIT\n",[2999,4221,4222],{"class":3001,"line":3063},[2999,4223,4126],{},[2999,4225,4226],{"class":3001,"line":3089},[2999,4227,4228],{},"user-2 请求完成\n",[3830,4230,4231],{"id":4231},"测试并发资源释放",[2956,4233,4234],{},"将文件末尾的三行请求替换为：",[2990,4236,4238],{"className":2992,"code":4237,"language":2994,"meta":2995,"style":2995},"await request('user-1');\nawait request('user-1');\n",[2985,4239,4240,4258],{"__ignoreMap":2995},[2999,4241,4242,4244,4246,4248,4250,4252,4254,4256],{"class":3001,"line":3002},[2999,4243,4132],{"class":3040},[2999,4245,3905],{"class":3020},[2999,4247,3050],{"class":3009},[2999,4249,3267],{"class":3013},[2999,4251,3410],{"class":3270},[2999,4253,3267],{"class":3013},[2999,4255,3057],{"class":3009},[2999,4257,3027],{"class":3013},[2999,4259,4260,4262,4264,4266,4268,4270,4272,4274],{"class":3001,"line":3030},[2999,4261,4132],{"class":3040},[2999,4263,3905],{"class":3020},[2999,4265,3050],{"class":3009},[2999,4267,3267],{"class":3013},[2999,4269,3410],{"class":3270},[2999,4271,3267],{"class":3013},[2999,4273,3057],{"class":3009},[2999,4275,3027],{"class":3013},[2956,4277,4200],{},[2990,4279,4281],{"className":3505,"code":4280,"language":3507,"meta":2995,"style":2995},"user-1 开始请求\nuser-1 请求完成\nuser-1 开始请求\nuser-1 请求完成\n",[2985,4282,4283,4287,4291,4295],{"__ignoreMap":2995},[2999,4284,4285],{"class":3001,"line":3002},[2999,4286,4116],{},[2999,4288,4289],{"class":3001,"line":3030},[2999,4290,4126],{},[2999,4292,4293],{"class":3001,"line":3037},[2999,4294,4116],{},[2999,4296,4297],{"class":3001,"line":3063},[2999,4298,4126],{},[2956,4300,4301,4302,4304,4305,4308,4309,4311],{},"这次使用 ",[2985,4303,4132],{}," 等待第一次请求完成，",[2985,4306,4307],{},"finally"," 已释放并发槽位，因此第二次请求可以正常执行。任务抛出异常时也会执行 ",[2985,4310,4307],{},"。",[4313,4314,4315],"warning",{},[2956,4316,4317,4320,4321,4324],{},[2985,4318,4319],{},"Map"," 和 ",[2985,4322,4323],{},"Set"," 只在单个进程中有效。上线应从认证结果获取用户 ID，多实例需要通过共享存储和原子操作统一限制请求，并处理进程异常退出后的并发槽位回收。",[2960,4326],{},[2951,4328,4330],{"id":4329},"请求超时与取消","🛠 请求超时与取消",[2956,4332,4333,4334,4337],{},"使用 Node.js 22 和 OpenAI SDK 5.12.2，安装依赖并配置 API Key 和可用的 Chat Completions 模型（需支持 ",[2985,4335,4336],{},"max_completion_tokens","）：",[2990,4339,4343],{"className":4340,"code":4341,"language":4342,"meta":2995,"style":2995},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","npm install openai@5.12.2\nexport OPENAI_API_KEY='你的 API Key'\nexport OPENAI_MODEL='你的模型 ID'\n","bash",[2985,4344,4345,4357,4374],{"__ignoreMap":2995},[2999,4346,4347,4351,4354],{"class":3001,"line":3002},[2999,4348,4350],{"class":4349},"sYGMc","npm",[2999,4352,4353],{"class":3270}," install",[2999,4355,4356],{"class":3270}," openai@5.12.2\n",[2999,4358,4359,4361,4364,4366,4368,4371],{"class":3001,"line":3030},[2999,4360,3041],{"class":3005},[2999,4362,4363],{"class":3009}," OPENAI_API_KEY",[2999,4365,3014],{"class":3013},[2999,4367,3267],{"class":3013},[2999,4369,4370],{"class":3270},"你的 API Key",[2999,4372,4373],{"class":3013},"'\n",[2999,4375,4376,4378,4381,4383,4385,4388],{"class":3001,"line":3037},[2999,4377,3041],{"class":3005},[2999,4379,4380],{"class":3009}," OPENAI_MODEL",[2999,4382,3014],{"class":3013},[2999,4384,3267],{"class":3013},[2999,4386,4387],{"class":3270},"你的模型 ID",[2999,4389,4373],{"class":3013},[3830,4391,4392],{"id":4392},"请求超时",[2956,4394,4395,4396,4399,4400,4403],{},"模型服务响应缓慢时，可以通过 OpenAI SDK 的 ",[2985,4397,4398],{},"timeout"," 限制请求等待时间（单位为毫秒），并设置 ",[2985,4401,4402],{},"maxRetries: 0"," 禁止自动重试，避免额外的等待和调用消耗。",[2956,4405,2983,4406,2988],{},[2985,4407,4408],{},"test-timeout.mjs",[2990,4410,4412],{"className":2992,"code":4411,"language":2994,"meta":2995,"style":2995},"import OpenAI from 'openai';\n\nconst openai = new OpenAI({\n    maxRetries: 0\n});\n\ntry {\n    const response = await openai.chat.completions.create({\n        model: process.env.OPENAI_MODEL,\n        messages: [{ role: 'user', content: '用一句话介绍 Vue。' }],\n        max_completion_tokens: 200\n    }, {\n        timeout: 1\n    });\n\n    console.log(response.choices[0].message.content);\n} catch (error) {\n    console.log(error.name);\n}\n",[2985,4413,4414,4433,4437,4455,4465,4474,4478,4485,4518,4541,4587,4597,4604,4614,4622,4626,4666,4677,4698],{"__ignoreMap":2995},[2999,4415,4416,4418,4421,4424,4426,4429,4431],{"class":3001,"line":3002},[2999,4417,3327],{"class":3040},[2999,4419,4420],{"class":3009}," OpenAI ",[2999,4422,4423],{"class":3040},"from",[2999,4425,3340],{"class":3013},[2999,4427,4428],{"class":3270},"openai",[2999,4430,3267],{"class":3013},[2999,4432,3027],{"class":3013},[2999,4434,4435],{"class":3001,"line":3030},[2999,4436,3034],{"emptyLinePlaceholder":3033},[2999,4438,4439,4441,4444,4446,4448,4451,4453],{"class":3001,"line":3037},[2999,4440,3006],{"class":3005},[2999,4442,4443],{"class":3009}," openai ",[2999,4445,3014],{"class":3013},[2999,4447,3017],{"class":3013},[2999,4449,4450],{"class":3020}," OpenAI",[2999,4452,3050],{"class":3009},[2999,4454,3161],{"class":3013},[2999,4456,4457,4460,4462],{"class":3001,"line":3063},[2999,4458,4459],{"class":3084},"    maxRetries",[2999,4461,3178],{"class":3013},[2999,4463,4464],{"class":3154}," 0\n",[2999,4466,4467,4470,4472],{"class":3001,"line":3089},[2999,4468,4469],{"class":3013},"}",[2999,4471,3057],{"class":3009},[2999,4473,3027],{"class":3013},[2999,4475,4476],{"class":3001,"line":3116},[2999,4477,3034],{"emptyLinePlaceholder":3033},[2999,4479,4480,4483],{"class":3001,"line":3121},[2999,4481,4482],{"class":3040},"try",[2999,4484,3060],{"class":3013},[2999,4486,4487,4489,4492,4494,4496,4499,4501,4504,4506,4509,4511,4514,4516],{"class":3001,"line":3164},[2999,4488,3066],{"class":3005},[2999,4490,4491],{"class":3009}," response",[2999,4493,3072],{"class":3013},[2999,4495,3770],{"class":3040},[2999,4497,4498],{"class":3009}," openai",[2999,4500,3078],{"class":3013},[2999,4502,4503],{"class":3009},"chat",[2999,4505,3078],{"class":3013},[2999,4507,4508],{"class":3009},"completions",[2999,4510,3078],{"class":3013},[2999,4512,4513],{"class":3020},"create",[2999,4515,3050],{"class":3084},[2999,4517,3161],{"class":3013},[2999,4519,4520,4523,4525,4528,4530,4533,4535,4538],{"class":3001,"line":3197},[2999,4521,4522],{"class":3084},"        model",[2999,4524,3178],{"class":3013},[2999,4526,4527],{"class":3009}," process",[2999,4529,3078],{"class":3013},[2999,4531,4532],{"class":3009},"env",[2999,4534,3078],{"class":3013},[2999,4536,4537],{"class":3009},"OPENAI_MODEL",[2999,4539,4540],{"class":3013},",\n",[2999,4542,4543,4546,4548,4551,4554,4557,4559,4561,4564,4566,4568,4571,4573,4575,4578,4580,4582,4585],{"class":3001,"line":3220},[2999,4544,4545],{"class":3084},"        messages",[2999,4547,3178],{"class":3013},[2999,4549,4550],{"class":3084}," [",[2999,4552,4553],{"class":3013},"{",[2999,4555,4556],{"class":3084}," role",[2999,4558,3178],{"class":3013},[2999,4560,3340],{"class":3013},[2999,4562,4563],{"class":3270},"user",[2999,4565,3267],{"class":3013},[2999,4567,3183],{"class":3013},[2999,4569,4570],{"class":3084}," content",[2999,4572,3178],{"class":3013},[2999,4574,3340],{"class":3013},[2999,4576,4577],{"class":3270},"用一句话介绍 Vue。",[2999,4579,3267],{"class":3013},[2999,4581,3334],{"class":3013},[2999,4583,4584],{"class":3084},"]",[2999,4586,4540],{"class":3013},[2999,4588,4589,4592,4594],{"class":3001,"line":3226},[2999,4590,4591],{"class":3084},"        max_completion_tokens",[2999,4593,3178],{"class":3013},[2999,4595,4596],{"class":3154}," 200\n",[2999,4598,4599,4602],{"class":3001,"line":3231},[2999,4600,4601],{"class":3013},"    },",[2999,4603,3060],{"class":3013},[2999,4605,4606,4609,4611],{"class":3001,"line":3254},[2999,4607,4608],{"class":3084},"        timeout",[2999,4610,3178],{"class":3013},[2999,4612,4613],{"class":3154}," 1\n",[2999,4615,4616,4618,4620],{"class":3001,"line":3280},[2999,4617,3449],{"class":3013},[2999,4619,3057],{"class":3084},[2999,4621,3027],{"class":3013},[2999,4623,4624],{"class":3001,"line":3285},[2999,4625,3034],{"emptyLinePlaceholder":3033},[2999,4627,4628,4631,4633,4635,4637,4640,4642,4645,4648,4651,4653,4655,4657,4659,4662,4664],{"class":3001,"line":3290},[2999,4629,4630],{"class":3009},"    console",[2999,4632,3078],{"class":3013},[2999,4634,3426],{"class":3020},[2999,4636,3050],{"class":3084},[2999,4638,4639],{"class":3009},"response",[2999,4641,3078],{"class":3013},[2999,4643,4644],{"class":3009},"choices",[2999,4646,4647],{"class":3084},"[",[2999,4649,4650],{"class":3154},"0",[2999,4652,4584],{"class":3084},[2999,4654,3078],{"class":3013},[2999,4656,3483],{"class":3009},[2999,4658,3078],{"class":3013},[2999,4660,4661],{"class":3009},"content",[2999,4663,3057],{"class":3084},[2999,4665,3027],{"class":3013},[2999,4667,4668,4670,4672,4675],{"class":3001,"line":3308},[2999,4669,4469],{"class":3013},[2999,4671,3452],{"class":3040},[2999,4673,4674],{"class":3009}," (error) ",[2999,4676,3161],{"class":3013},[2999,4678,4679,4681,4683,4685,4687,4689,4691,4694,4696],{"class":3001,"line":3764},[2999,4680,4630],{"class":3009},[2999,4682,3078],{"class":3013},[2999,4684,3426],{"class":3020},[2999,4686,3050],{"class":3084},[2999,4688,3457],{"class":3009},[2999,4690,3078],{"class":3013},[2999,4692,4693],{"class":3009},"name",[2999,4695,3057],{"class":3084},[2999,4697,3027],{"class":3013},[2999,4699,4700],{"class":3001,"line":3779},[2999,4701,3311],{"class":3013},[2956,4703,3498,4704,4707],{},[2985,4705,4706],{},"node test-timeout.mjs","，如果请求超时，预期输出：",[2990,4709,4711],{"className":3505,"code":4710,"language":3507,"meta":2995,"style":2995},"APIConnectionTimeoutError\n",[2985,4712,4713],{"__ignoreMap":2995},[2999,4714,4715],{"class":3001,"line":3002},[2999,4716,4710],{},[2956,4718,4719,4720,4722],{},"示例故意设置为 1 毫秒，便于观察超时行为；实际开发可根据任务耗时设置为 10000 毫秒等合理值。请求级 ",[2985,4721,4398],{}," 会覆盖客户端的默认值。",[3830,4724,4725],{"id":4725},"主动取消请求",[2956,4727,4728,4729,4732],{},"当用户点击停止生成按钮时，可以使用浏览器和 Node.js 内置的 ",[2985,4730,4731],{},"AbortController"," 主动取消请求，无需等待超时。",[4734,4735,4736,4749],"table",{},[4737,4738,4739],"thead",{},[4740,4741,4742,4746],"tr",{},[4743,4744,4745],"th",{},"属性或方法",[4743,4747,4748],{},"作用",[4750,4751,4752,4763],"tbody",{},[4740,4753,4754,4760],{},[4755,4756,4757],"td",{},[2985,4758,4759],{},"controller.signal",[4755,4761,4762],{},"创建控制器时自动生成的取消信号，传给支持取消的 API",[4740,4764,4765,4770],{},[4755,4766,4767],{},[2985,4768,4769],{},"controller.abort()",[4755,4771,4772],{},"发出取消信号，通知接收该信号的 API 停止操作",[2956,4774,2983,4775,4778],{},[2985,4776,4777],{},"test-cancel.mjs","，将取消信号传给 OpenAI SDK 的第二个参数：",[2990,4780,4782],{"className":2992,"code":4781,"language":2994,"meta":2995,"style":2995},"import OpenAI from 'openai';\n\nconst openai = new OpenAI({\n    timeout: 10000,\n    maxRetries: 0\n});\n\nconst controller = new AbortController();\n\n// 模拟用户在 1 秒后点击停止按钮\nconst timer = setTimeout(() => {\n    controller.abort();\n}, 1000);\n\ntry {\n    const response = await openai.chat.completions.create({\n        model: process.env.OPENAI_MODEL,\n        messages: [{ role: 'user', content: '详细介绍 JavaScript。' }],\n        max_completion_tokens: 200\n    }, {\n        signal: controller.signal\n    });\n\n    console.log(response.choices[0].message.content);\n} catch (error) {\n    console.log(error.name);\n} finally {\n    clearTimeout(timer);\n}\n",[2985,4783,4784,4800,4804,4820,4832,4840,4848,4852,4870,4874,4879,4898,4912,4924,4928,4934,4962,4980,5019,5027,5033,5048,5056,5060,5095,5106,5127,5136,5151],{"__ignoreMap":2995},[2999,4785,4786,4788,4790,4792,4794,4796,4798],{"class":3001,"line":3002},[2999,4787,3327],{"class":3040},[2999,4789,4420],{"class":3009},[2999,4791,4423],{"class":3040},[2999,4793,3340],{"class":3013},[2999,4795,4428],{"class":3270},[2999,4797,3267],{"class":3013},[2999,4799,3027],{"class":3013},[2999,4801,4802],{"class":3001,"line":3030},[2999,4803,3034],{"emptyLinePlaceholder":3033},[2999,4805,4806,4808,4810,4812,4814,4816,4818],{"class":3001,"line":3037},[2999,4807,3006],{"class":3005},[2999,4809,4443],{"class":3009},[2999,4811,3014],{"class":3013},[2999,4813,3017],{"class":3013},[2999,4815,4450],{"class":3020},[2999,4817,3050],{"class":3009},[2999,4819,3161],{"class":3013},[2999,4821,4822,4825,4827,4830],{"class":3001,"line":3063},[2999,4823,4824],{"class":3084},"    timeout",[2999,4826,3178],{"class":3013},[2999,4828,4829],{"class":3154}," 10000",[2999,4831,4540],{"class":3013},[2999,4833,4834,4836,4838],{"class":3001,"line":3089},[2999,4835,4459],{"class":3084},[2999,4837,3178],{"class":3013},[2999,4839,4464],{"class":3154},[2999,4841,4842,4844,4846],{"class":3001,"line":3116},[2999,4843,4469],{"class":3013},[2999,4845,3057],{"class":3009},[2999,4847,3027],{"class":3013},[2999,4849,4850],{"class":3001,"line":3121},[2999,4851,3034],{"emptyLinePlaceholder":3033},[2999,4853,4854,4856,4859,4861,4863,4866,4868],{"class":3001,"line":3164},[2999,4855,3006],{"class":3005},[2999,4857,4858],{"class":3009}," controller ",[2999,4860,3014],{"class":3013},[2999,4862,3017],{"class":3013},[2999,4864,4865],{"class":3020}," AbortController",[2999,4867,3024],{"class":3009},[2999,4869,3027],{"class":3013},[2999,4871,4872],{"class":3001,"line":3197},[2999,4873,3034],{"emptyLinePlaceholder":3033},[2999,4875,4876],{"class":3001,"line":3220},[2999,4877,4878],{"class":3721},"// 模拟用户在 1 秒后点击停止按钮\n",[2999,4880,4881,4883,4886,4888,4890,4892,4894,4896],{"class":3001,"line":3226},[2999,4882,3006],{"class":3005},[2999,4884,4885],{"class":3009}," timer ",[2999,4887,3014],{"class":3013},[2999,4889,3852],{"class":3020},[2999,4891,3050],{"class":3009},[2999,4893,3024],{"class":3013},[2999,4895,3940],{"class":3005},[2999,4897,3060],{"class":3013},[2999,4899,4900,4903,4905,4908,4910],{"class":3001,"line":3231},[2999,4901,4902],{"class":3009},"    controller",[2999,4904,3078],{"class":3013},[2999,4906,4907],{"class":3020},"abort",[2999,4909,3024],{"class":3084},[2999,4911,3027],{"class":3013},[2999,4913,4914,4917,4920,4922],{"class":3001,"line":3254},[2999,4915,4916],{"class":3013},"},",[2999,4918,4919],{"class":3154}," 1000",[2999,4921,3057],{"class":3009},[2999,4923,3027],{"class":3013},[2999,4925,4926],{"class":3001,"line":3280},[2999,4927,3034],{"emptyLinePlaceholder":3033},[2999,4929,4930,4932],{"class":3001,"line":3285},[2999,4931,4482],{"class":3040},[2999,4933,3060],{"class":3013},[2999,4935,4936,4938,4940,4942,4944,4946,4948,4950,4952,4954,4956,4958,4960],{"class":3001,"line":3290},[2999,4937,3066],{"class":3005},[2999,4939,4491],{"class":3009},[2999,4941,3072],{"class":3013},[2999,4943,3770],{"class":3040},[2999,4945,4498],{"class":3009},[2999,4947,3078],{"class":3013},[2999,4949,4503],{"class":3009},[2999,4951,3078],{"class":3013},[2999,4953,4508],{"class":3009},[2999,4955,3078],{"class":3013},[2999,4957,4513],{"class":3020},[2999,4959,3050],{"class":3084},[2999,4961,3161],{"class":3013},[2999,4963,4964,4966,4968,4970,4972,4974,4976,4978],{"class":3001,"line":3308},[2999,4965,4522],{"class":3084},[2999,4967,3178],{"class":3013},[2999,4969,4527],{"class":3009},[2999,4971,3078],{"class":3013},[2999,4973,4532],{"class":3009},[2999,4975,3078],{"class":3013},[2999,4977,4537],{"class":3009},[2999,4979,4540],{"class":3013},[2999,4981,4982,4984,4986,4988,4990,4992,4994,4996,4998,5000,5002,5004,5006,5008,5011,5013,5015,5017],{"class":3001,"line":3764},[2999,4983,4545],{"class":3084},[2999,4985,3178],{"class":3013},[2999,4987,4550],{"class":3084},[2999,4989,4553],{"class":3013},[2999,4991,4556],{"class":3084},[2999,4993,3178],{"class":3013},[2999,4995,3340],{"class":3013},[2999,4997,4563],{"class":3270},[2999,4999,3267],{"class":3013},[2999,5001,3183],{"class":3013},[2999,5003,4570],{"class":3084},[2999,5005,3178],{"class":3013},[2999,5007,3340],{"class":3013},[2999,5009,5010],{"class":3270},"详细介绍 JavaScript。",[2999,5012,3267],{"class":3013},[2999,5014,3334],{"class":3013},[2999,5016,4584],{"class":3084},[2999,5018,4540],{"class":3013},[2999,5020,5021,5023,5025],{"class":3001,"line":3779},[2999,5022,4591],{"class":3084},[2999,5024,3178],{"class":3013},[2999,5026,4596],{"class":3154},[2999,5028,5029,5031],{"class":3001,"line":3789},[2999,5030,4601],{"class":3013},[2999,5032,3060],{"class":3013},[2999,5034,5035,5038,5040,5043,5045],{"class":3001,"line":3808},[2999,5036,5037],{"class":3084},"        signal",[2999,5039,3178],{"class":3013},[2999,5041,5042],{"class":3009}," controller",[2999,5044,3078],{"class":3013},[2999,5046,5047],{"class":3009},"signal\n",[2999,5049,5050,5052,5054],{"class":3001,"line":3821},[2999,5051,3449],{"class":3013},[2999,5053,3057],{"class":3084},[2999,5055,3027],{"class":3013},[2999,5057,5058],{"class":3001,"line":3826},[2999,5059,3034],{"emptyLinePlaceholder":3033},[2999,5061,5063,5065,5067,5069,5071,5073,5075,5077,5079,5081,5083,5085,5087,5089,5091,5093],{"class":3001,"line":5062},24,[2999,5064,4630],{"class":3009},[2999,5066,3078],{"class":3013},[2999,5068,3426],{"class":3020},[2999,5070,3050],{"class":3084},[2999,5072,4639],{"class":3009},[2999,5074,3078],{"class":3013},[2999,5076,4644],{"class":3009},[2999,5078,4647],{"class":3084},[2999,5080,4650],{"class":3154},[2999,5082,4584],{"class":3084},[2999,5084,3078],{"class":3013},[2999,5086,3483],{"class":3009},[2999,5088,3078],{"class":3013},[2999,5090,4661],{"class":3009},[2999,5092,3057],{"class":3084},[2999,5094,3027],{"class":3013},[2999,5096,5098,5100,5102,5104],{"class":3001,"line":5097},25,[2999,5099,4469],{"class":3013},[2999,5101,3452],{"class":3040},[2999,5103,4674],{"class":3009},[2999,5105,3161],{"class":3013},[2999,5107,5109,5111,5113,5115,5117,5119,5121,5123,5125],{"class":3001,"line":5108},26,[2999,5110,4630],{"class":3009},[2999,5112,3078],{"class":3013},[2999,5114,3426],{"class":3020},[2999,5116,3050],{"class":3084},[2999,5118,3457],{"class":3009},[2999,5120,3078],{"class":3013},[2999,5122,4693],{"class":3009},[2999,5124,3057],{"class":3084},[2999,5126,3027],{"class":3013},[2999,5128,5130,5132,5134],{"class":3001,"line":5129},27,[2999,5131,4469],{"class":3013},[2999,5133,3784],{"class":3040},[2999,5135,3060],{"class":3013},[2999,5137,5139,5142,5144,5147,5149],{"class":3001,"line":5138},28,[2999,5140,5141],{"class":3020},"    clearTimeout",[2999,5143,3050],{"class":3084},[2999,5145,5146],{"class":3009},"timer",[2999,5148,3057],{"class":3084},[2999,5150,3027],{"class":3013},[2999,5152,5154],{"class":3001,"line":5153},29,[2999,5155,3311],{"class":3013},[2956,5157,3498,5158,5161],{},[2985,5159,5160],{},"node test-cancel.mjs","，如果请求尚未完成便被主动取消，预期输出：",[2990,5163,5165],{"className":3505,"code":5164,"language":3507,"meta":2995,"style":2995},"APIUserAbortError\n",[2985,5166,5167],{"__ignoreMap":2995},[2999,5168,5169],{"class":3001,"line":3002},[2999,5170,5164],{},[2956,5172,5173],{},"如果请求提前完成，则正常打印回答。每次新请求应创建新的控制器，已取消的信号不能恢复。",[4313,5175,5176],{},[2956,5177,5178],{},"以上测试可能产生 API 费用。取消本地请求不保证服务商立即停止生成或计费；流式响应还需确保取消信号能够终止响应流的读取。",[2960,5180],{},[2951,5182,5184],{"id":5183},"知识问答","❓ 知识问答",[2956,5186,5187],{},"Q1：为什么应用已经限制每个用户的请求频率，模型服务商仍然返回 429？",[2956,5189,5190],{},"多个用户可能共享同一项目的请求和 Token 限额。即使每个用户都符合应用规则，合计用量仍可能达到服务商的限制。遇到 429 应区分限流和额度耗尽，避免盲目重试。",[2960,5192],{},[2951,5194,5196],{"id":5195},"小练习","🧪 小练习",[2956,5198,4139,5199,5201,5202,5204],{},[2985,5200,2987],{}," 中的应用并发上限改为 3，修改 ",[2985,5203,3837],{},"，让四个不同用户同时发起请求。",[2956,5206,5207,5208,5210],{},"验收标准：前三个任务开始执行，第四个输出 ",[2985,5209,3702],{},"；前三个任务完成后，新请求可以正常执行。",[2960,5212],{},[2956,5214,5215],{},"🎉 你已经掌握了 AI 请求的限流、并发限制和取消机制。",[5217,5218,5219],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .s50WR, html code.shiki .s50WR{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sndM8, html code.shiki .sndM8{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .s86vT, html code.shiki .s86vT{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .swgpB, html code.shiki .swgpB{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .s8pZq, html code.shiki .s8pZq{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sK9QF, html code.shiki .sK9QF{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}html pre.shiki code .sd2Uz, html code.shiki .sd2Uz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .smPcV, html code.shiki .smPcV{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sIEYB, html code.shiki .sIEYB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .syuKq, html code.shiki .syuKq{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sYGMc, html code.shiki .sYGMc{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}",{"title":2995,"searchDepth":3030,"depth":3030,"links":5221},[5222,5223,5224,5225,5230,5234,5235],{"id":2953,"depth":3030,"text":2954},{"id":2964,"depth":3030,"text":2965},{"id":2976,"depth":3030,"text":2977},{"id":3542,"depth":3030,"text":3543,"children":5226},[5227,5228,5229],{"id":3832,"depth":3037,"text":3832},{"id":4136,"depth":3037,"text":4136},{"id":4231,"depth":3037,"text":4231},{"id":4329,"depth":3030,"text":4330,"children":5231},[5232,5233],{"id":4392,"depth":3037,"text":4392},{"id":4725,"depth":3037,"text":4725},{"id":5183,"depth":3030,"text":5184},{"id":5195,"depth":3030,"text":5196},"限制 AI 请求频率与并发数量，设置请求超时并主动取消请求。","md",null,{},{"title":2914},{"title":2914,"description":5236},"WDveYFmDM6",[5244,5246],{"title":2910,"path":2911,"stem":2912,"description":5245,"children":-1},"学习输出内容审核、结构与业务校验，以及 Vue 中的 Markdown 安全渲染，避免不可信模型输出进入页面或执行环境。",{"title":2918,"path":2919,"stem":2920,"description":5247,"children":-1},"限制 AI 模型输入和输出 Token，统计实际用量、估算费用并控制累计额度。",1796265417506]