[{"data":1,"prerenderedAt":924},["ShallowReactive",2],{"guides-index-articles":3},[4,24,39,55,70,87,104,118,132,144,158,170,182,197,208,220,234,246,258,270,282,294,308,320,332,344,356,369,382,394,406,420,431,442,456,469,481,496,509,522,536,548,560,573,585,597,610,622,635,649,663,675,689,702,715,730,742,753,765,777,789,801,810,821,835,846,858,873,884,896,911],{"slug":5,"noIndex":6,"category":7,"date":8,"updatedDate":9,"readingMinutes":10,"tags":11,"relatedTool":17,"cn":18,"en":21},"json-number-precision",false,"踩坑避坑","2026-07-28","2026-10-08",8,[12,13,14,15,16],"JSON","JavaScript","Number","BigInt","精度丢失","/tools/json/json-validator",{"title":19,"description":20},"JSON 大整数精度丢失：Number 安全范围与解决方案","解析 JSON 大整数在 JavaScript 中被舍入的原因，演示 Number.MAX_SAFE_INTEGER 边界和 bigint 字段的精度风险。对比字符串契约、BigInt 转换、reviver 恢复限制与 JSON.stringify 序列化方案，帮助核对原始响应、保留订单 ID 并验证回传数据。",{"title":22,"description":23},"Large JSON Integers: Precision Fixes","Learn why JavaScript can round valid JSON integers, and how string contracts, BigInt conversion, and safe serialization preserve every digit.",{"slug":25,"noIndex":6,"category":26,"date":8,"updatedDate":8,"readingMinutes":27,"tags":28,"relatedTool":17,"cn":33,"en":36},"json-unexpected-token","错误排查",10,[12,29,30,31,32],"JSON.parse","SyntaxError","Unexpected token","调试",{"title":34,"description":35},"JSON Unexpected token：8 类原因与定位","从原始响应、错误位置和 JSON 语法三层定位 JSON.parse 的 Unexpected token，覆盖 HTML 响应、重复解析、尾逗号、引号、控制字符、非法数字和截断数据。",{"title":37,"description":38},"JSON.parse Unexpected Token: Debugging Causes","Debug JSON.parse errors by checking raw responses, positions, and grammar. Covers HTML, double parsing, trailing commas, escaping, and truncated data.",{"slug":40,"noIndex":6,"category":41,"date":8,"updatedDate":8,"readingMinutes":42,"tags":43,"relatedTool":48,"cn":49,"en":52},"large-json-rendering","性能优化",13,[12,44,45,46,47],"Web Worker","虚拟列表","大文件","Vue 3","/tools/json/large-json-viewer",{"title":50,"description":51},"Web Worker 与虚拟列表渲染超大 JSON 的实现方法","拆解超大 JSON 在读取、解析、线程通信和 DOM 渲染中的内存与主线程瓶颈，并用 Web Worker 保留数据、按视口返回切片、Vue 3 虚拟列表渲染。",{"title":53,"description":54},"Large JSON: Web Workers and Virtual Lists","Separate file reading, JSON parsing, worker messaging, and DOM costs. Keep data in a worker, return viewport slices, and render a Vue 3 virtual list.",{"slug":56,"noIndex":6,"category":7,"date":8,"updatedDate":8,"readingMinutes":57,"tags":58,"relatedTool":63,"cn":64,"en":67},"nested-json-escaping",9,[12,59,60,61,62],"转义","反斜杠","JSON.stringify","嵌套 JSON","/tools/json/json-compress-escape",{"title":65,"description":66},"嵌套 JSON 反斜杠为什么变多：分层转义与解析","解释对象、JSON 文本、嵌套 JSON 字符串和 JavaScript 源码四个表示层为什么产生不同数量的反斜杠，并给出逐层 stringify、parse 与类型判断方案。",{"title":68,"description":69},"Nested JSON Escaping: Backslashes and Parsing","Understand the four JSON representation layers and apply one stringify and one parse per layer without destructive backslash replacements.",{"slug":71,"noIndex":6,"category":72,"date":8,"updatedDate":73,"readingMinutes":74,"tags":75,"relatedTool":80,"cn":81,"en":84},"unicode-json-escapes","原理解析","2026-09-30",7,[12,76,77,78,79],"Unicode","UTF-16","UTF-8","代理对","/tools/dev/unicode",{"title":82,"description":83},"JSON Unicode 转义：\\uXXXX、代理对与 UTF-8","解析 JSON 中 Unicode 转义与原生字符的关系，区分 UTF-16 码元、Unicode 码点、UTF-8 字节和 Emoji 代理对。JavaScript 示例演示解析、ASCII-only 转换与孤立代理项检测，帮助排查接口响应、日志及嵌套字符串中的转义问题，并验证字符还原结果，避免重复解码或截断代理对。",{"title":85,"description":86},"JSON Unicode Escapes: UTF-16 and UTF-8","Understand JSON \\uXXXX code units, emoji surrogate pairs, native Unicode, escaped text, and safe conversion or validation.",{"slug":88,"noIndex":89,"category":90,"date":8,"updatedDate":8,"readingMinutes":91,"tags":92,"relatedTool":63,"cn":98,"en":101},"json-compression-transport",true,"最佳实践",6,[93,94,95,96,97],"HTTP","Content-Encoding","Gzip","Brotli","NDJSON",{"title":99,"description":100},"JSON HTTP 传输：Gzip、Brotli 与流式响应的选择","区分 JSON 压缩、转义和 HTTP Content-Encoding，说明 Gzip、Brotli、分页与 NDJSON 的适用边界，并给出可验证的浏览器流式读取示例。",{"title":102,"description":103},"JSON over HTTP: Choosing Gzip, Brotli, and Streaming","Separate JSON minification and escaping from HTTP Content-Encoding, then choose Gzip, Brotli, pagination, or NDJSON with a verifiable browser streaming example.",{"slug":105,"noIndex":89,"category":26,"date":8,"updatedDate":8,"readingMinutes":91,"tags":106,"relatedTool":111,"cn":112,"en":115},"json-diff-unordered-keys",[107,108,109,110],"JSON Diff","Object Keys","Canonicalization","Comparison","/tools/json/json-diff",{"title":113,"description":114},"JSON 对象键顺序不同为何 Diff：结构化比较方法","解释 JSON 文本比较与结构化比较的区别，演示如何递归规范化对象键且保留数组顺序，并列出数字、重复键和数组语义等边界条件。",{"title":116,"description":117},"Why JSON Key Order Changes a Diff: Structural Comparison","Learn the difference between JSON text and structural comparison, with a recursive object-key canonicalizer that deliberately preserves array order and documents key boundaries.",{"slug":119,"noIndex":89,"category":120,"date":8,"updatedDate":8,"readingMinutes":74,"tags":121,"relatedTool":111,"cn":126,"en":129},"json-diff-myers-algorithm","实现原理",[122,123,124,125],"Myers Diff","JSON Array","Patch","Shortest Edit Script",{"title":127,"description":128},"Myers 算法用于 JSON 数组 Diff 的边界与实现","说明 Myers 最短编辑脚本适合比较有序 JSON 数组，演示 insert、delete、equal 操作和路径 patch 的生成，并解释对象匹配与重复元素的限制。",{"title":130,"description":131},"Myers Diff for JSON Arrays: Limits and Implementation","Use Myers shortest edit scripts for ordered JSON arrays, with insert/delete/equal operations, path patches, and clear limits around object identity and duplicate values.",{"slug":133,"noIndex":89,"category":90,"date":8,"updatedDate":8,"readingMinutes":91,"tags":134,"relatedTool":111,"cn":138,"en":141},"json-diff-breaking-changes",[135,136,107,137],"API Contract","Breaking Changes","Schema",{"title":139,"description":140},"API 契约 Breaking Changes：字段变化检查方法","以响应 JSON 契约为范围，区分字段新增、删除、类型、必填和枚举变化，提供不依赖未定义库的 TypeScript 比较示例与发布前验证步骤。",{"title":142,"description":143},"API Contract Breaking Changes: Checking Field Changes","Check response-JSON contract changes by separating added, removed, typed, required, and enum fields, with a self-contained TypeScript example and release verification steps.",{"slug":145,"noIndex":89,"category":7,"date":8,"updatedDate":8,"readingMinutes":91,"tags":146,"relatedTool":151,"cn":152,"en":155},"json-to-sql-injection-quotes",[147,148,149,150],"JSON to SQL","PostgreSQL","Parameterized Query","SQL Literal","/tools/json/json-to-sql",{"title":153,"description":154},"JSON 转 SQL：PostgreSQL 参数化查询与字面量转义边界","以 PostgreSQL 为例区分参数化写库与离线 SQL 导出，解释单引号、NULL、布尔值和数值的处理，避免把字符串替换误当成通用注入防护。",{"title":156,"description":157},"JSON to SQL: Parameters and Safe Literal Escaping","Using PostgreSQL, distinguish parameterized writes from offline SQL export and handle quotes, NULL, booleans, and finite numbers without treating string replacement as injection protection.",{"slug":159,"noIndex":89,"category":120,"date":8,"updatedDate":8,"readingMinutes":91,"tags":160,"relatedTool":151,"cn":164,"en":167},"json-to-sql-flatten-nested",[147,161,162,163],"Relational Model","Nested JSON","Foreign Key",{"title":165,"description":166},"嵌套 JSON 展平为关系表：数组、主键与外键如何映射","从一个嵌套订单 JSON 设计客户、订单和明细表，解释一对一与一对多拆分、主外键、空数组和稳定 ID，避免把展平误当成简单改名。",{"title":168,"description":169},"Flattening Nested JSON into Relational Tables","Map a nested order document into customer, order, and item tables, covering one-to-many arrays, primary and foreign keys, empty arrays, and stable identity.",{"slug":171,"noIndex":89,"category":26,"date":8,"updatedDate":8,"readingMinutes":172,"tags":173,"relatedTool":151,"cn":176,"en":179},"json-to-sql-type-inference",5,[147,174,148,175,137],"MySQL","Type Inference",{"title":177,"description":178},"JSON 转 SQL 类型推断：MySQL 与 PostgreSQL 的边界","分开说明 MySQL 与 PostgreSQL 对 JSON、数字、字符串、数组、对象和 NULL 的类型建议，解释为什么样本推断不能替代明确的数据库 schema。",{"title":180,"description":181},"JSON to SQL Types: MySQL and PostgreSQL","Generate conservative MySQL and PostgreSQL candidates for JSON, numbers, strings, arrays, objects, and NULL while explaining why samples cannot replace an explicit schema.",{"slug":183,"noIndex":89,"category":26,"date":8,"updatedDate":184,"readingMinutes":91,"tags":185,"relatedTool":190,"cn":191,"en":194},"sql-to-json-parser-limit","2026-08-08",[186,187,188,189],"SQL Parser","INSERT","Regex","SQL to JSON","/tools/json/sql-to-json",{"title":192,"description":193},"SQL 转 JSON：为什么正则难以可靠解析 INSERT","用最小示例说明正则提取 INSERT 会被引号、转义、批量 VALUES、注释和 SQL 方言打破，并提供仅用于分句的保守扫描器与 parser 选型边界。",{"title":195,"description":196},"SQL to JSON: Why Regex Cannot Reliably Parse INSERT","See how quotes, escapes, batch VALUES, comments, and dialects break regex-based INSERT extraction, with a conservative statement splitter that deliberately is not a SQL parser.",{"slug":198,"noIndex":89,"category":7,"date":8,"updatedDate":184,"readingMinutes":172,"tags":199,"relatedTool":190,"cn":202,"en":205},"sql-to-json-null-boolean-pitfalls",[189,200,201,174,148],"NULL","Boolean",{"title":203,"description":204},"SQL 转 JSON：NULL、布尔值与 0/1 的语义差异","分开说明 PostgreSQL boolean、MySQL TINYINT(1)、SQL NULL、字符串 null 与数值 0/1 在 JSON 转换中的差异，并给出显式映射和验证示例。",{"title":206,"description":207},"SQL to JSON: NULL, Boolean, and 0/1 Semantics","Separate PostgreSQL boolean, MySQL TINYINT(1), SQL NULL, the string null, and numeric 0/1 with explicit mappings and verification cases.",{"slug":209,"noIndex":89,"category":90,"date":8,"updatedDate":184,"readingMinutes":172,"tags":210,"relatedTool":190,"cn":214,"en":217},"sql-to-json-mock-data-batch",[189,211,212,213],"Mock Data","SQL Dump","Redaction",{"title":215,"description":216},"SQL Dump 转 JSON Mock：解析、脱敏、批量与类型边界","从 SQL dump 生成测试 JSON 时，分别处理 INSERT parser、敏感字段脱敏、批量行和 SQL 类型限制，不把 Mock 转换当成数据库迁移。",{"title":218,"description":219},"SQL Dump to JSON: Parsing, Redaction and Batching","Transform SQL dump INSERTs into test JSON fixtures by isolating parser, redaction, batching, and SQL type constraints.",{"slug":221,"noIndex":89,"category":7,"date":8,"updatedDate":8,"readingMinutes":172,"tags":222,"relatedTool":227,"cn":228,"en":231},"json-to-xml-array-attribute-conflicts",[223,224,225,226],"JSON to XML","Arrays","Attributes","Schema Conflict","/tools/json/json-to-xml",{"title":229,"description":230},"JSON 转 XML 遇到数组、重复同名元素与属性层级冲突的解决方案","在 JSON 转 XML 前定义数组、属性、文本和重复同名元素规则，附带有明确输入输出契约的订单转换示例。",{"title":232,"description":233},"JSON to XML: Arrays and Attribute Conflicts","Define array, attribute, text, and repeated-element rules before mapping JSON to XML, with an order example that keeps the input/output contract explicit.",{"slug":235,"noIndex":89,"category":120,"date":8,"updatedDate":8,"readingMinutes":236,"tags":237,"relatedTool":227,"cn":240,"en":243},"json-to-xml-cdata-attributes-mapping",4,[223,238,225,239],"CDATA","Escaping",{"title":241,"description":242},"JSON 转 XML：属性与 CDATA 的映射约定","说明 JSON 不原生区分 XML 属性、文本和 CDATA，建立显式字段约定并处理 XML 转义与 CDATA 中的 `]]>` 边界。",{"title":244,"description":245},"JSON to XML: Mapping Attributes and CDATA Explicitly","JSON has no native attribute, text, or CDATA semantics. Define explicit keys, escape XML attributes, and split the CDATA `]]>` boundary before serialization.",{"slug":247,"noIndex":89,"category":90,"date":8,"updatedDate":8,"readingMinutes":172,"tags":248,"relatedTool":227,"cn":252,"en":255},"json-to-xml-soap-webservice-bridge",[223,249,250,251],"SOAP","Envelope","Namespace",{"title":253,"description":254},"JSON 转 XML 与 SOAP Web Service 桥接：Envelope、Body 和命名空间","从 JSON 业务输入生成受控的 SOAP 1.1 Envelope，说明 Body、namespace、Fault 与 HTTP 协议边界，避免把普通 XML 转换误称为完整 SOAP 客户端。",{"title":256,"description":257},"JSON to XML SOAP Bridge: Envelope, Body, and Namespaces","Build a controlled SOAP 1.1 Envelope from JSON-derived payload XML, covering Body, namespaces, Faults, and HTTP version boundaries without calling ordinary XML conversion a SOAP client.",{"slug":259,"noIndex":89,"category":26,"date":8,"updatedDate":8,"readingMinutes":236,"tags":260,"relatedTool":263,"cn":264,"en":267},"xml-to-json-single-array-inference",[261,224,137,262],"XML to JSON","Shape Inference","/tools/json/xml-to-json",{"title":265,"description":266},"XML 转 JSON：单节点与多节点的数组形状推断","解释 XML 只有一个子节点和出现多个同名节点时的 JSON 形状差异，比较始终数组、schema 驱动和后处理三种策略。",{"title":268,"description":269},"XML to JSON: Single Nodes and Arrays","Explain why one repeated XML element may become an object while several become an array, comparing always-array, schema-driven, and post-processing policies.",{"slug":271,"noIndex":89,"category":120,"date":8,"updatedDate":8,"readingMinutes":172,"tags":272,"relatedTool":263,"cn":276,"en":279},"xml-to-json-domparser-performance",[261,273,274,275],"DOMParser","Browser","Parser Errors",{"title":277,"description":278},"XML 转 JSON：浏览器 DOMParser 的解析、错误检测与非流式边界","说明浏览器 DOMParser 的 XML 解析流程、parsererror 检测和 DOM 遍历转 JSON 方法，不编造性能数据，并明确 DOMParser 不是流式解析器。",{"title":280,"description":281},"XML to JSON: DOMParser Performance and Limits","Use browser DOMParser with explicit parser-error checks and DOM-to-JSON projection while avoiding invented performance numbers and stating that DOMParser is not streaming.",{"slug":283,"noIndex":89,"category":7,"date":8,"updatedDate":8,"readingMinutes":236,"tags":284,"relatedTool":263,"cn":288,"en":291},"xml-to-json-namespaces-prefix-loss",[261,285,286,287],"Namespaces","Prefix","localName",{"title":289,"description":290},"XML 转 JSON：namespace URI、prefix 与 localName 的区别","用相同 URI 的不同前缀示例说明 XML 命名空间身份由 namespace URI 决定，转换时应保留 URI 与 localName，而不是依赖 prefix。",{"title":292,"description":293},"XML to JSON: Namespace URI, Prefix, and localName","Show that namespace URI, not a prefix, identifies an XML vocabulary, and preserve URI plus localName when projecting names into JSON.",{"slug":295,"noIndex":89,"category":7,"date":8,"updatedDate":8,"readingMinutes":236,"tags":296,"relatedTool":301,"cn":302,"en":305},"json-yaml-indentation-tab-error",[297,298,299,300],"JSON to YAML","YAML","Indentation","ScannerError","/tools/json/json-to-yaml",{"title":303,"description":304},"JSON 转 YAML：空格缩进、Tab 与 ScannerError 边界","解释 YAML 缩进必须使用一致的空格、Tab 为什么会触发解析错误，并说明 PyYAML、js-yaml 等解析器的错误类型和文案可能不同。",{"title":306,"description":307},"JSON to YAML: Fixing Tabs and Indentation Errors","Explain why YAML indentation should use consistent spaces, how indentation tabs trigger parser errors, and why PyYAML, js-yaml, and other error names differ.",{"slug":309,"noIndex":89,"category":26,"date":8,"updatedDate":8,"readingMinutes":172,"tags":310,"relatedTool":301,"cn":314,"en":317},"json-yaml-boolean-coercion-pitfalls",[297,311,312,313],"YAML 1.1","YAML 1.2","Boolean Coercion",{"title":315,"description":316},"JSON 转 YAML：yes/no、on/off 与布尔值隐式转换","区分 YAML 1.1、YAML 1.2 与具体解析器 schema 对 yes/no、on/off 的处理，说明何时会得到布尔值以及如何保留字符串。",{"title":318,"description":319},"JSON to YAML: Boolean Coercion for yes/no and on/off","Distinguish YAML 1.1, YAML 1.2, and parser schemas when handling yes/no and on/off, and preserve strings when those words are business values.",{"slug":321,"noIndex":89,"category":90,"date":8,"updatedDate":8,"readingMinutes":172,"tags":322,"relatedTool":301,"cn":326,"en":329},"json-yaml-k8s-docker-compose-convert",[297,323,324,325],"Kubernetes","Docker Compose","Semantic Conversion",{"title":327,"description":328},"JSON/YAML 转换：Kubernetes 与 Docker Compose 的语义保留","区分 JSON↔YAML 的语法转换与 Kubernetes、Docker Compose 配置语义，分别检查顶层结构、类型、端口、环境变量和目标 schema。",{"title":330,"description":331},"JSON/YAML Conversion for Kubernetes and Docker Compose","Separate JSON/YAML serialization from Kubernetes and Docker Compose schema semantics, with target-specific checks for roots, ports, environment, and labels.",{"slug":333,"noIndex":89,"category":120,"date":8,"updatedDate":8,"readingMinutes":91,"tags":334,"relatedTool":337,"cn":338,"en":341},"json-to-ts-type-inference-engine",[335,175,336,224],"JSON to TypeScript","Recursive Types","/tools/json/json-to-typescript",{"title":339,"description":340},"JSON 转 TypeScript 类型推断引擎：递归、数组合并与命名","从 JSON 样本递归推断 TypeScript 类型，处理对象字段、数组元素合并和非法标识符命名，并明确样本推断的局限。",{"title":342,"description":343},"JSON to TypeScript: Type Inference and Array Merging","Infer TypeScript from JSON recursively, merge object-array fields, generate safe property names, and state why a sample cannot prove a complete schema.",{"slug":345,"noIndex":89,"category":7,"date":8,"updatedDate":8,"readingMinutes":236,"tags":346,"relatedTool":337,"cn":350,"en":353},"json-to-ts-null-optional-union-types",[335,347,348,349],"Null","Optional","Union Types",{"title":351,"description":352},"JSON 转 TypeScript：null、字段缺失、optional 与 union","区分 JSON 中字段缺失与 null，说明 TypeScript optional、strictNullChecks 和 union 类型在接口建模中的不同含义。",{"title":354,"description":355},"JSON to TypeScript: Null, Optional and Union Types","Distinguish missing JSON properties from null and model optional, nullable, and union states with strict TypeScript checks.",{"slug":357,"noIndex":89,"category":90,"date":8,"updatedDate":8,"readingMinutes":172,"tags":358,"relatedTool":337,"cn":363,"en":366},"json-to-ts-swagger-contract-automation",[359,360,335,361,362],"OpenAPI","Swagger","Code Generation","Runtime Validation",{"title":364,"description":365},"OpenAPI/Swagger Schema 到 TypeScript 契约：代码生成与运行时校验","使用 OpenAPI 术语说明 schema、required、nullable、请求/响应契约到 TypeScript 的生成边界，并区分静态代码生成与运行时校验。",{"title":367,"description":368},"OpenAPI to TypeScript: Generation and Validation","Use OpenAPI terminology to map required and nullable schemas into TypeScript while separating static code generation from runtime request and response validation.",{"slug":370,"noIndex":89,"category":26,"date":8,"updatedDate":8,"readingMinutes":172,"tags":371,"relatedTool":375,"cn":376,"en":379},"sql-formatter-dialect-compatibility",[372,373,148,174,374],"SQL Formatter","SQL Dialects","SQLite","/tools/format/sql-formatter",{"title":377,"description":378},"SQL Formatter 方言兼容：关键字、函数与语法保真","说明 SQL formatter 为什么必须声明方言，比较 PostgreSQL、MySQL 与 SQLite 的关键字、函数、引号和语法保真边界。",{"title":380,"description":381},"SQL Formatting: Dialects and Syntax Compatibility","Explain why a SQL formatter needs a declared dialect and how PostgreSQL, MySQL, and SQLite keywords, functions, quoting, and syntax affect fidelity.",{"slug":383,"noIndex":89,"category":90,"date":8,"updatedDate":8,"readingMinutes":172,"tags":384,"relatedTool":375,"cn":388,"en":391},"sql-formatter-ci-cd-pipeline",[372,385,386,387],"CI/CD","Check Mode","Auto-fix",{"title":389,"description":390},"SQL Formatter 接入 CI/CD：检查、自动修改与失败策略","围绕 SQL 格式化的 CI/CD 接入说明 check、write 两种模式、差异输出和失败策略，避免把格式检查写成泛化工程模板。",{"title":392,"description":393},"SQL Formatting in CI/CD: Checks and Auto-fix","Integrate SQL formatting into CI/CD with explicit check and write modes, diff reporting, and failure policies instead of a generic engineering template.",{"slug":395,"noIndex":89,"category":120,"date":8,"updatedDate":8,"readingMinutes":74,"tags":396,"relatedTool":375,"cn":400,"en":403},"sql-formatter-lexer-highlighter-engine",[372,397,398,399],"Lexer","Tokens","Syntax Highlighting",{"title":401,"description":402},"SQL Formatter Lexer 与高亮引擎：Token、缩进状态和能力边界","从 lexer/token 角度说明 SQL 高亮和缩进状态机如何工作，并明确语法高亮引擎不是完整 SQL parser。",{"title":404,"description":405},"SQL Formatter: Tokens, Highlighting and Indentation","Explain how a SQL lexer produces tokens for highlighting and indentation, and why a highlighter is not a complete SQL parser.",{"slug":407,"noIndex":89,"category":7,"date":8,"updatedDate":8,"readingMinutes":172,"tags":408,"relatedTool":413,"cn":414,"en":417},"xml-formatter-whitespace-text-node-pollution",[409,410,411,412],"XML Formatter","Whitespace","DOM","Mixed Content","/tools/format/xml-formatter",{"title":415,"description":416},"XML Formatter：空白文本节点污染与 mixed content","区分纯字符串格式化和重新解析 DOM，说明缩进空白何时会成为文本节点，以及 mixed content 为什么不能随意插入换行。",{"title":418,"description":419},"XML Formatter: Whitespace Text Nodes and Mixed Content","Separate string formatting from DOM reserialization and explain when indentation becomes text content in mixed XML content.",{"slug":421,"noIndex":89,"category":26,"date":8,"updatedDate":8,"readingMinutes":236,"tags":422,"relatedTool":413,"cn":425,"en":428},"xml-formatter-html-entities-double-escape",[409,423,424,238],"XML Entities","HTML Entities",{"title":426,"description":427},"XML Formatter：HTML 实体、字符引用与二次转义","区分 XML 实体、数字字符引用、HTML 实体和 CDATA，定位 XML formatter 在解析与序列化之间产生二次转义的环节。",{"title":429,"description":430},"XML Formatting: Entities and Double Escaping","Distinguish XML entities, numeric character references, HTML entities, and CDATA, and locate double escaping at the parse/serialize boundary.",{"slug":432,"noIndex":89,"category":120,"date":8,"updatedDate":8,"readingMinutes":172,"tags":433,"relatedTool":413,"cn":436,"en":439},"xml-formatter-self-closing-indentation-alg",[409,434,299,435],"Self-closing Tags","Tokenizer",{"title":437,"description":438},"XML Formatter 自闭合标签缩进：Token、标签类型与缩进栈","用受限 token 化和缩进栈说明 XML formatter 如何区分开始、结束、自闭合标签及注释，并明确不覆盖完整 XML 规范。",{"title":440,"description":441},"XML Formatting: Self-closing Tags and Indentation","Use constrained tokenization and an indentation stack to distinguish opening, closing, and self-closing XML tags without claiming full XML coverage.",{"slug":443,"noIndex":89,"category":7,"date":8,"updatedDate":184,"readingMinutes":74,"tags":444,"relatedTool":449,"cn":450,"en":453},"css-formatter-specificity-selector-merge",[445,446,447,448],"CSS Formatter","Specificity","Cascade","Selector Merge","/tools/format/css-formatter",{"title":451,"description":452},"CSS 选择器合并：级联顺序、权重与样式覆盖风险","区分 CSS 格式化工具与压缩合并工具的职责边界，深入分析选择器合并及重排对源码级联顺序 (Cascade Order) 和权重 (Specificity) 的破坏机制与避坑方案。",{"title":454,"description":455},"CSS Selector Merging: Cascade and Specificity Risks","Distinguish CSS formatting from minification, analyzing how selector merging and reordering break source cascade order and specificity, with safe optimization patterns.",{"slug":457,"noIndex":89,"category":90,"date":8,"updatedDate":184,"readingMinutes":91,"tags":458,"relatedTool":449,"cn":463,"en":466},"css-formatter-purgecss-minification-tips",[459,460,461,462],"CSS Optimization","PurgeCSS","Minification","Performance",{"title":464,"description":465},"CSS PurgeCSS 未使用样式剔除、Safelist 机制与 Minification 配合实践","解析 PurgeCSS 清除未使用 CSS 的原理与匹配算法，防范动态类名剔除风险，并给出与 Minification 及 HTTP/CDN 缓存配合的样式优化方案。",{"title":467,"description":468},"PurgeCSS: Unused Styles, Safelists and Minification","Explain PurgeCSS unused style removal principles, prevent dynamic class name stripping, and combine Tree-shaking with Minification and CDN caching.",{"slug":470,"noIndex":89,"category":120,"date":8,"updatedDate":184,"readingMinutes":10,"tags":471,"relatedTool":449,"cn":475,"en":478},"css-formatter-postcss-ast-reorder",[472,473,445,474],"PostCSS","AST","Property Sorting",{"title":476,"description":477},"PostCSS 属性重排：重复声明、回退与前缀风险","分析使用 PostCSS AST 对 CSS 属性进行自动排序时的安全边界，重点剖析浏览器 Fallback、Vendor Prefix 前缀顺序和 CSS 变量被错误重排的风险。",{"title":479,"description":480},"CSS Property Reordering: PostCSS and Fallback Risks","Analyze safety boundaries when reordering CSS properties with PostCSS AST, focusing on browser fallbacks, vendor prefix order, and CSS variable hazards.",{"slug":482,"noIndex":89,"category":7,"date":8,"updatedDate":483,"readingMinutes":172,"tags":484,"relatedTool":489,"cn":490,"en":493},"html-formatter-inline-block-space-collapse","2026-10-11",[485,486,487,488],"HTML Minifier","Inline Block","Space Collapse","Layout Bug","/tools/format/html-formatter",{"title":491,"description":492},"HTML 格式化与压缩：空白折叠 (Space Collapse) 与 inline-block 布局间距处理","区分 HTML 代码格式化与空白压缩对内联元素的影响，深入剖析 display: inline-block 标签间换行折叠为空格的渲染原理与避坑方案。",{"title":494,"description":495},"HTML Formatting: Whitespace and Inline-block Spacing","Distinguish HTML code formatting from whitespace minification, analyzing whitespace collapse rules and layout safety for display: inline-block elements.",{"slug":497,"noIndex":89,"category":120,"date":8,"updatedDate":483,"readingMinutes":172,"tags":498,"relatedTool":489,"cn":503,"en":506},"html-formatter-script-style-indentation-engine",[499,500,501,502],"HTML Formatter","Script Block","Style Block","Nested Parsing",{"title":504,"description":505},"HTML 内嵌脚本与样式：结束标签边界及格式化限制","用浏览器 DOMParser 复现 script 和 style 结束标签截断，区分 HTML 与 JavaScript 解析边界，验证 JSON 嵌入、模板字符串和语言类型的格式化限制。",{"title":507,"description":508},"HTML Formatting: Embedded Script and Style Blocks","Reproduce script and style closing-tag boundaries with DOMParser. Check escaped JSON embedding, template strings, and language types before formatting HTML.",{"slug":510,"noIndex":89,"category":90,"date":8,"updatedDate":483,"readingMinutes":172,"tags":511,"relatedTool":489,"cn":516,"en":519},"html-formatter-seo-semantic-cleanliness",[512,513,514,515],"SEO","Semantic HTML","HTML Cleanliness","Best Practices",{"title":517,"description":518},"语义化 HTML 标准、DOM 结构干净度排查与 SEO 影响分析","通过浏览器示例检查文档顺序中的标题跳级和图片 alt 属性缺失，区分格式化、语义结构、装饰图片与项目内部约定，不承诺排名或收录提升。",{"title":520,"description":521},"Semantic HTML: Structure Checks and SEO","Check heading order and missing image alt attributes with browser examples. Distinguish formatting, semantics, and project conventions without ranking promises.",{"slug":523,"noIndex":89,"category":26,"date":8,"updatedDate":184,"readingMinutes":172,"tags":524,"relatedTool":529,"cn":530,"en":533},"js-compress-terser-side-effects-removal",[525,526,527,528],"Terser","JS Minification","Side Effects","Tree Shaking Bug","/tools/format/js-compress-format",{"title":531,"description":532},"JavaScript 压缩：DCE、副作用与 Pure 注解","区分打包工具 (Bundler) 与压缩工具 (Minifier) 的优化职责，深入剖析 Terser / esbuild 进行死代码消除 (DCE) 时函数副作用判定逻辑与 PURE 标记防坑指南。",{"title":534,"description":535},"Terser: Dead Code, Side Effects and Pure Annotations","Distinguish bundlers from minifiers, analyzing dead code elimination (DCE) side-effect rules in Terser/esbuild and PURE annotation best practices.",{"slug":537,"noIndex":89,"category":7,"date":8,"updatedDate":184,"readingMinutes":91,"tags":538,"relatedTool":529,"cn":542,"en":545},"js-compress-top-level-await-optional-chaining",[13,539,540,541,525],"ES6+","Optional Chaining","Parse Error",{"title":543,"description":544},"现代 JavaScript 压缩：语法解析、转译与运行时兼容","区分 Parser、Transpiler (Babel/SWC)、Minifier (Terser/esbuild) 与 Runtime 的配置关系，排查可选链 ?. 与顶层 await 在低版本压缩器中抛出 Parse Error 的根因与降级策略。",{"title":546,"description":547},"Modern JavaScript Minification: Syntax Compatibility","Distinguish Parser, Transpiler (Babel/SWC), Minifier (Terser/esbuild), and Runtime configurations, fixing Parse Errors for optional chaining ?. and top-level await.",{"slug":549,"noIndex":89,"category":120,"date":8,"updatedDate":184,"readingMinutes":91,"tags":550,"relatedTool":529,"cn":554,"en":557},"js-compress-ast-transformation-pipeline",[13,473,551,552,553],"Babel","Code Compress","Architecture",{"title":555,"description":556},"JavaScript 压缩流程：AST 转换与 Source Map","深入拆解 JS 代码压缩全生命周期：从 Parser 生成 AST 语法树、Transform 阶段执行变量混淆与死分支剥离，到 Code Generator 生成压缩产物与 Source Map 映射。",{"title":558,"description":559},"JavaScript Minification: ASTs and Source Maps","Deconstruct the JS compression lifecycle: building ASTs via Parsers, mangling variables and stripping dead branches in Transform, and emitting Source Maps.",{"slug":561,"noIndex":89,"category":7,"date":8,"updatedDate":184,"readingMinutes":172,"tags":562,"relatedTool":566,"cn":567,"en":570},"url-encode-encodeuri-vs-encodeuricomponent",[563,564,565,13],"URL Encode","encodeURI","encodeURIComponent","/tools/dev/url-encode",{"title":568,"description":569},"深入对比 encodeURI 与 encodeURIComponent：RFC 3986 保留字符与场景落地","对比 JavaScript 原生 `encodeURI` 与 `encodeURIComponent` 在 RFC 3986 保留字符（如 `?`, `=`, `/`, `&`）处理上的本质不同，列举完整 URL、路径段与查询参数的场景编码规范。",{"title":571,"description":572},"encodeURI vs encodeURIComponent: When to Use Each","Compare JavaScript `encodeURI` vs `encodeURIComponent` for RFC 3986 reserved characters like `?`, `=`, `/`, `&`, detailing rules for full URLs, paths, and queries.",{"slug":574,"noIndex":89,"category":26,"date":8,"updatedDate":184,"readingMinutes":172,"tags":575,"relatedTool":566,"cn":579,"en":582},"url-encode-query-plus-sign-space-bug",[563,576,577,578],"Plus Sign","Space","Query Parameter",{"title":580,"description":581},"URL Query 参数中加号 + 被后端误解析为空格的原理分析与 `%2B` 编码防御","分析传统 `application/x-www-form-urlencoded` 规范中将空格转为 `+` 导致的加号被误解析为空格漏洞，对比 `%20` 与 `%2B` 编码映射机制。",{"title":583,"description":584},"URL Query Encoding: Plus Signs, Spaces and %2B","Analyze how traditional application/x-www-form-urlencoded specs convert spaces to + causing plus signs to parse as spaces, detailing %20 vs %2B.",{"slug":586,"noIndex":6,"category":90,"date":8,"updatedDate":184,"readingMinutes":91,"tags":587,"relatedTool":566,"cn":591,"en":594},"url-encode-xss-html-entity-defense",[588,563,589,590],"XSS Defense","HTML Entity","Security",{"title":592,"description":593},"XSS 防御：URL 编码与 HTML 实体转义边界","分析 HTML 文本、属性、JS 上下文与 URL Sink (如 `\u003Ca href=\"...\">`) 的差异，澄清 URL 编码无法替代 XSS 防御的误区并给出多层防御规范。",{"title":595,"description":596},"XSS Defense: URL vs HTML Encoding","Analyze HTML text, attribute, JS, and URL sink differences (\u003Ca href>), clarifying why URL encoding cannot replace XSS defense with multi-layered rules.",{"slug":598,"noIndex":89,"category":26,"date":8,"updatedDate":184,"readingMinutes":172,"tags":599,"relatedTool":603,"cn":604,"en":607},"base64-btoa-latin1-utf8-invalid-character",[600,601,602,78],"Base64","btoa","InvalidCharacterError","/tools/dev/base64",{"title":605,"description":606},"btoa 编码报错：中文、Emoji 与 UTF-8 转码","剖析 `window.btoa()` 仅支持 Latin-1 (ASCII 0-255) 编码的局限，提供基于 `TextEncoder` 的标准 UTF-8 Unicode Base64 编解码实现，并澄清 Base64 非加密本质。",{"title":608,"description":609},"Fix btoa Errors: UTF-8, Chinese Text and Emoji","Analyze window.btoa Latin-1 (ASCII 0-255) limits, providing TextEncoder-based UTF-8 Unicode Base64 encoding while clarifying Base64 is not encryption.",{"slug":611,"noIndex":89,"category":120,"date":8,"updatedDate":184,"readingMinutes":172,"tags":612,"relatedTool":603,"cn":616,"en":619},"base64-padding-equal-url-safe-variants",[600,613,614,615],"Padding","URL-Safe","Algorithm",{"title":617,"description":618},"Base64 编解码算法原理：3字节转4字节、`=` 填充符根因与 URL-Safe (RFC 4648) 变种","深度拆解 Base64 3 字节 (24bit) 转 4 字符 (4 * 6bit) 算法推导，解释末尾 `=` 与 `==` 填充符的生成条件，以及 URL-Safe (`-` 与 `_`) 替换规则与无 padding 还原。",{"title":620,"description":621},"Base64: Padding Rules and URL-safe Encoding","Deconstruct Base64 24-bit to 4x6-bit group conversions, explaining `=` / `==` padding conditions and RFC 4648 URL-Safe (`-` / `_`) replacement rules.",{"slug":623,"noIndex":89,"category":90,"date":8,"updatedDate":184,"readingMinutes":91,"tags":624,"relatedTool":603,"cn":629,"en":632},"base64-image-css-inline-http-performance",[625,626,627,628],"Base64 Image","CSS Inline","HTTP Performance","Web Vitals",{"title":630,"description":631},"图片转 Base64 嵌入 CSS/HTML 的性能权衡：HTTP 请求数、33% 体积膨胀与 FCP 阻塞","分析 Data URL Base64 内联小图标的性能收益与开销（增加 33% 体积、阻塞 Critical CSS 渲染路径与无法独立 CDN 缓存），给出 Web 性能优化阈值与评估工具函数。",{"title":633,"description":634},"Base64 Images: Inlining and Performance Trade-offs","Analyze pros/cons of Data URL Base64 inline icons (33% size inflation, CSS parse blocking, missing CDN cache), giving Web Performance rules.",{"slug":636,"noIndex":89,"category":7,"date":8,"updatedDate":184,"readingMinutes":91,"tags":637,"relatedTool":642,"cn":643,"en":646},"hash-md5-charset-utf8-gbk-mismatch",[638,639,640,78,641],"MD5","Hash","Charset","GBK","/tools/dev/hash",{"title":644,"description":645},"为什么前后端算出来的 MD5 不一致？字符集编码 (UTF-8 vs GBK) 隐形坑","剖析哈希函数作用于底层字节流而非抽象字符的本质，分析 UTF-8 与 GBK 编码下相同字符串物理字节差异导致的 MD5 不一致问题与校验对齐方案。",{"title":647,"description":648},"MD5 Hash Mismatches: UTF-8 vs GBK Encoding","Explain how hash functions process raw byte streams rather than abstract characters, detailing UTF-8 vs. GBK encoding mismatches and resolution strategies.",{"slug":650,"noIndex":6,"category":90,"date":8,"updatedDate":184,"readingMinutes":10,"tags":651,"relatedTool":642,"cn":657,"en":660},"hash-pbkdf2-salting-sha256-password-security",[652,653,654,655,656],"Salt","PBKDF2","SHA-256","Password Security","Cryptography",{"title":658,"description":659},"加盐 (Salt) 与 PBKDF2：为什么单纯用 SHA-256 存储用户密码是不安全的","解析彩虹表与 GPU 暴力破解密码机制，说明加盐与 PBKDF2 (HMAC-SHA256) 迭代慢哈希原理，并给出 Web Crypto API 密码哈希与验证代码。",{"title":661,"description":662},"PBKDF2 Password Hashing vs Plain SHA-256","Understand why plain SHA-256 password hashes are fast to crack, and how unique salts plus PBKDF2 slow offline guessing.",{"slug":664,"noIndex":6,"category":120,"date":8,"updatedDate":184,"readingMinutes":172,"tags":665,"relatedTool":642,"cn":669,"en":672},"hash-web-crypto-api-large-file",[666,667,668,462],"Web Crypto API","Large File Hash","Async",{"title":670,"description":671},"Web Crypto 计算文件 SHA-256：非流式 digest 的内存边界与大文件方案","澄清 Web Crypto API 不支持流式 digest：中小文件可设置上限后一次性计算，真正的大文件应在 Worker 中使用可信的增量 SHA-256 实现。",{"title":673,"description":674},"Web Crypto SHA-256: Large-File Memory Limits","Web Crypto digest is not streaming: set a size limit for smaller files, and use an audited incremental SHA-256 Worker for genuinely large files.",{"slug":676,"noIndex":6,"category":7,"date":8,"updatedDate":184,"readingMinutes":74,"tags":677,"relatedTool":682,"cn":683,"en":686},"timestamp-10-vs-13-digit-year-bug",[678,679,680,681],"Timestamp","10-digit","13-digit","Year 1970 Bug","/tools/dev/timestamp",{"title":684,"description":685},"10 位与 13 位时间戳误用导致的“1970年”或“55000年”Bug 排查","剖析秒级 (10位) 与毫秒级 (13位) Unix 时间戳在 JavaScript Date 转换中的物理单位差异，给出单位归一化防错函数、测试样例与排坑指南。",{"title":687,"description":688},"10/13-Digit Timestamps: Year 1970 Bugs","Explain second (10-digit) vs. millisecond (13-digit) Unix timestamp unit differences in JavaScript Date parsing, providing normalization helpers.",{"slug":690,"noIndex":89,"category":26,"date":8,"updatedDate":184,"readingMinutes":91,"tags":691,"relatedTool":682,"cn":696,"en":699},"timestamp-safari-iso-date-parsing-invalid",[692,693,694,695],"Safari","Date Parsing","Invalid Date","Cross-Browser",{"title":697,"description":698},"Safari 日期解析踩坑：不要把非标准 YYYY-MM-DD HH:mm:ss 交给 Date.parse","说明 JavaScript 对非标准日期字符串的解析结果由实现决定，给出带时区 ISO 输入与严格本地组件解析两条跨浏览器方案。",{"title":700,"description":701},"Safari Date Parsing: Invalid Dates and ISO Formats","Examine engine differences between Safari JavaScriptCore and Chrome V8 when parsing non-standard dates, providing cross-browser ISO 8601 date parsing.",{"slug":703,"noIndex":89,"category":90,"date":8,"updatedDate":184,"readingMinutes":91,"tags":704,"relatedTool":682,"cn":709,"en":712},"timestamp-timezone-utc-cst-dst",[705,706,707,708,515],"Timezone","UTC","CST","Daylight Saving",{"title":710,"description":711},"跨国业务中的时区难题：UTC 时间戳、CST 与夏令时 (DST) 的正确处理","厘清时间点物理存储与时区展示渲染的区别，剖析 CST 缩写多义性与夏令时 (DST) 切换陷阱，给出使用 IANA 时区名的前端格式化方案。",{"title":713,"description":714},"Unix Timestamps: UTC, CST and Daylight Saving Time","Decouple physical timestamps from localized timezone rendering, addressing CST ambiguities and Daylight Saving Time shifts with IANA timezone names.",{"slug":716,"noIndex":6,"category":120,"date":8,"updatedDate":9,"readingMinutes":74,"tags":717,"relatedTool":723,"cn":724,"en":727},"uuid-v1-v4-v5-mac-random-collision",[718,719,720,721,722],"UUID","UUID v4","Collision","MAC Address","Crypto","/tools/dev/uuid",{"title":725,"description":726},"UUID v1、v4、v5 如何选择？节点标识、随机性与确定性映射","依据 RFC 9562 对比 UUID v1 的时间与节点字段、v4 的 122 位随机字段和 v5 的 Namespace + SHA-1 确定性映射。说明 MAC 隐私、随机源质量、生日碰撞概率及数据库唯一约束，并介绍 v7 的时间排序取舍，选择随机标识或稳定名称映射，理解 UUID 与安全令牌的边界。",{"title":728,"description":729},"UUID v1 vs v4 vs v5: Privacy & Collisions","Use RFC 9562 to compare v1 time/node fields, v4's 122 random bits, and v5 namespace/name mapping, including privacy, collision, and database tradeoffs.",{"slug":731,"noIndex":89,"category":7,"date":8,"updatedDate":184,"readingMinutes":74,"tags":732,"relatedTool":723,"cn":736,"en":739},"uuid-crypto-randomuuid-secure-context",[718,733,734,735],"crypto.randomUUID","Secure Context","HTTPS",{"title":737,"description":738},"crypto.randomUUID 报错：安全上下文与兼容方案","分析 W3C Secure Context 规范对 `window.crypto.randomUUID()` 的安全限制，讲解在 HTTP 开发环境或旧版浏览器下的密码学安全 Polyfill 降级方案。",{"title":740,"description":741},"crypto.randomUUID: Fix Secure Context Errors","Analyze W3C Secure Context restrictions on `window.crypto.randomUUID()`, offering cryptographically secure polyfill fallbacks for HTTP environments.",{"slug":743,"noIndex":89,"category":90,"date":8,"updatedDate":184,"readingMinutes":91,"tags":744,"relatedTool":723,"cn":747,"en":750},"uuid-mysql-b-tree-clustered-index-performance",[718,174,745,746,462],"B+Tree","Clustered Index",{"title":748,"description":749},"为什么不推荐把 UUID 作为 MySQL 数据库的聚簇索引主键？深入探讨 B+Tree 页分裂","剖析随机 UUID v4 作为 InnoDB 聚簇索引引发的 B+Tree 50/50 页分裂、Buffer Pool 缓存碎片与磁盘随机 I/O 问题，对比 BINARY(16) 与 UUID v7 时序优化。",{"title":751,"description":752},"UUIDs in MySQL: B-tree Performance and Page Splits","Examine random UUID v4 performance degradation on InnoDB clustered indexes, detailing 50/50 page splits, Buffer Pool churn, BINARY(16), and UUID v7.",{"slug":754,"noIndex":6,"category":7,"date":8,"updatedDate":184,"readingMinutes":74,"tags":755,"relatedTool":758,"cn":759,"en":762},"regex-redos-cpu-100-percent-vulnerability",[756,188,462,757,590],"ReDoS","CPU 100%","/tools/dev/regex",{"title":760,"description":761},"小心 ReDoS 攻击！写错正则表达式导致 CPU 100% 爆表的原因与防范","剖析正则表达式拒绝服务攻击 (ReDoS) 底层机制，解释 NFA 引擎灾难性回溯 (Catastrophic Backtracking) 原理，提供安全正则改写与超时隔离防护手段。",{"title":763,"description":764},"ReDoS: Catastrophic Regex Backtracking","Examine Regular Expression Denial of Service (ReDoS) mechanics, detailing NFA engine catastrophic backtracking and offering safe rewriting & timeout safeguards.",{"slug":766,"noIndex":89,"category":26,"date":8,"updatedDate":184,"readingMinutes":91,"tags":767,"relatedTool":758,"cn":771,"en":774},"regex-global-g-flag-lastindex-bug",[188,768,769,770],"g Flag","lastIndex","Stateful Bug",{"title":772,"description":773},"JavaScript 正则全局匹配 /g 模式下反复调用 .test() 结果交替变化的怪异 Bug","剖析带有全局标志 `/g` 的 RegExp 实例维护内部 `lastIndex` 有状态属性引发的连续 `.test()` 出现 `true` -> `false` -> `true` 交替 Bug，提供状态重置与纯函数防范方案。",{"title":775,"description":776},"JavaScript Regex: Global Flags and lastIndex Bugs","Analyze how the global `/g` flag mutates `RegExp.lastIndex`, causing consecutive `.test()` calls to alternate between `true` and `false`.",{"slug":778,"noIndex":89,"category":90,"date":8,"updatedDate":184,"readingMinutes":91,"tags":779,"relatedTool":758,"cn":783,"en":786},"regex-greedy-vs-lazy-backtracking-performance",[188,780,781,462,782],"Greedy","Lazy","Optimization",{"title":784,"description":785},"贪婪匹配与非贪婪匹配原理：如何写出高性能、无过度回溯的正则表达式","对比贪婪量词 (`*`, `+`) 与懒惰量词 (`*?`, `+?`) 的搜索机制，澄清“懒惰匹配不回溯”的误区，讲解基于精确字符类与锚点的高效正则优化方案。",{"title":787,"description":788},"Regex: Greedy vs Lazy Quantifiers and Backtracking","Compare greedy (`*`, `+`) and lazy (`*?`, `+?`) search mechanisms, debunking lazy non-backtracking myths and providing precise character class optimizations.",{"slug":790,"noIndex":89,"category":7,"date":8,"updatedDate":184,"readingMinutes":91,"tags":791,"relatedTool":80,"cn":795,"en":798},"unicode-emoji-surrogate-pairs-length-truncation",[76,792,793,794],"Emoji","Surrogate Pairs","JavaScript Length",{"title":796,"description":797},"Emoji 表情与辅助平面字符在 JavaScript length 计算及截断乱码坑","讲解 JavaScript `'🚀'.length === 2` 的根因，对比 Code Unit、Code Point 与 Grapheme Cluster 区别，提供基于 Intl.Segmenter 的安全截断算法。",{"title":799,"description":800},"JavaScript Emoji: String Length and Safe Truncation","Explain why `'🚀'.length === 2` in JavaScript, compare Code Units, Code Points, and Grapheme Clusters, and provide safe Intl.Segmenter truncation.",{"slug":802,"noIndex":89,"category":120,"date":8,"updatedDate":184,"readingMinutes":91,"tags":803,"relatedTool":80,"cn":804,"en":807},"unicode-utf8-utf16-surrogate-pairs-deep-dive",[76,78,77,793],{"title":805,"description":806},"深入浅出 Unicode、UTF-8、UTF-16 与 Surrogate Pairs 代理对编码原理","全面对比 Unicode 字符集与 UTF-8 / UTF-16 传输存储编码，详解高低代理项 (High/Low Surrogates) 的二进制计算公式与位运算推导。",{"title":808,"description":809},"Unicode: UTF-8, UTF-16 and Surrogate Pairs","Compare Unicode character sets with UTF-8 / UTF-16 encodings, detailing High/Low Surrogate pair bitwise formulas and binary conversions.",{"slug":811,"noIndex":89,"category":26,"date":8,"updatedDate":184,"readingMinutes":91,"tags":812,"relatedTool":80,"cn":815,"en":818},"unicode-garbled-text-repair-troubleshooting-handbook",[813,76,640,814],"Garbled Text","Troubleshooting",{"title":816,"description":817},"全网乱码终极排查手册：从字符集匹配到数据库乱码诊断全流程","系统梳理前端展示乱码 (如 `\\u4e2d` 未转义、`Ã¤Â½Â` 错解码)、HTTP Header 缺失与数据库 `latin1` 乱码的排查方向，揭示不可逆替换字符损毁原理。",{"title":819,"description":820},"Garbled Text: Charset Diagnosis and Recovery Limits","Systematically diagnose UI garbled text (un-decoded `\\u4e2d`, Latin1 mismatches), HTTP header omissions, and MySQL `latin1` corruptions.",{"slug":822,"noIndex":89,"category":26,"date":8,"updatedDate":8,"readingMinutes":10,"tags":823,"relatedTool":828,"cn":829,"en":832},"js-obfuscator-undefined-is-not-a-function-hoisting",[824,825,826,827],"JS Obfuscator","Undefined Bug","Scope Collision","Debugging","/tools/dev/js-obfuscator",{"title":830,"description":831},"JS 代码混淆后出现 undefined is not a function 作用域与变量名冲突排查","分析 JavaScript 混淆工具在重命名变量、提取字符串数组与改写属性访问时引发的 Uncaught TypeError 运行时异常排查方案。",{"title":833,"description":834},"JS Obfuscation: Fix Scope and Function Call Errors","Analyze how JavaScript obfuscator variable mangling, string array extraction, and property renaming break `this` bindings and cause Uncaught TypeError exceptions.",{"slug":836,"noIndex":89,"category":120,"date":8,"updatedDate":8,"readingMinutes":57,"tags":837,"relatedTool":828,"cn":840,"en":843},"js-obfuscator-control-flow-flattening-dead-code",[824,838,839,462],"Control Flow Flattening","Dead Code",{"title":841,"description":842},"JavaScript 控制流平坦化与死代码注入原理：性能、可读性与调试成本","剖析控制流平坦化 (Control Flow Flattening) 开关、Dispatcher 分发循环与死代码注入原理，评估对 CPU 执行开销、可读性与调试的副作用。",{"title":844,"description":845},"JS Obfuscation: Control Flow and Dead Code Costs","Analyze Control Flow Flattening dispatchers and Dead Code Injection mechanisms, evaluating impacts on CPU execution overhead, bundle size, and debugging.",{"slug":847,"noIndex":89,"category":90,"date":8,"updatedDate":8,"readingMinutes":74,"tags":848,"relatedTool":828,"cn":852,"en":855},"js-obfuscator-anti-reverse-engineering-size",[824,849,850,851],"Security Boundary","Bundle Size","Source Maps",{"title":853,"description":854},"JS 混淆防逆向工程与代码体积、性能及 Source Map 的平衡策略","澄清“混淆不是安全边界”的真相，评估代码混淆对 JS 体积膨胀与解析开销的影响，讲解生产环境 Source Map 隔离策略。",{"title":856,"description":857},"JS Obfuscation: Security Limits and Bundle Size","Clarify why obfuscation is not a security boundary, evaluate bundle bloat and V8 parse overhead, and implement secure production Source Map isolation.",{"slug":859,"noIndex":89,"category":120,"date":8,"updatedDate":184,"readingMinutes":860,"tags":861,"relatedTool":866,"cn":867,"en":870},"code-diff-lcs-myers-algorithm-history",11,[862,863,122,864,865],"Diff Algorithm","LCS","Git","History","/tools/dev/code-diff",{"title":868,"description":869},"从 LCS 到 Myers Diff：Git 与代码对比工具算法演进史","回顾最长公共子序列 (LCS) 动态规划算法到 Myers 算法与 Patience Diff 在版本控制与代码对比工具中的演进过程与复杂性推导。",{"title":871,"description":872},"Code Diff Algorithms: LCS, Myers and Patience","Examine the evolution of sequence comparison algorithms from dynamic programming LCS to Myers Diff and Patience Diff in version control systems.",{"slug":874,"noIndex":89,"category":90,"date":8,"updatedDate":184,"readingMinutes":10,"tags":875,"relatedTool":866,"cn":878,"en":881},"code-diff-large-file-web-worker-dom-chunks",[876,44,877,462],"Code Diff","Virtualization",{"title":879,"description":880},"万行大文件代码对比性能优化：Web Worker 异步计算与 DOM 虚拟化分片渲染","讲解在前端对比万行大文件时，如何使用 Web Worker 隔离 CPU 密集 Diff 计算，并结合 DOM 虚拟化视口 (Virtualization) 解决主线程卡死问题。",{"title":882,"description":883},"Large File Diffs: Web Workers and DOM Virtualization","Learn how to optimize web-based large file diffs by offloading CPU-bound tasks to Web Workers and applying DOM virtualization for zero UI lag.",{"slug":885,"noIndex":89,"category":7,"date":8,"updatedDate":184,"readingMinutes":74,"tags":886,"relatedTool":866,"cn":890,"en":893},"code-diff-crlf-vs-lf-line-ending-diff",[887,888,889,864,876],"CRLF","LF","Line Endings",{"title":891,"description":892},"CRLF 与 LF 换行符引发的全页假 Diff：原理、最小复现与 Git 配置防线","分析 Windows (CRLF, `\\r\\n`) 与 Linux/macOS (LF, `\\n`) 换行符混用引发整页文件被标记为已修改的假 Diff 原因，讲解 Git 行尾规范化方案。",{"title":894,"description":895},"CRLF vs LF: Fix Line Ending Diffs with Git","Analyze how line ending mismatches between Windows (CRLF, `\\r\\n`) and Linux/macOS (LF, `\\n`) cause whole-file false diffs, and configure Git line ending normalization.",{"slug":897,"noIndex":89,"category":90,"date":898,"updatedDate":898,"readingMinutes":74,"tags":899,"relatedTool":904,"cn":905,"en":908},"git-complete-tutorial","2026-07-29",[864,900,901,902,903],"Version Control","DevOps","Workflow","Tutorial","/articles/software",{"title":906,"description":907},"Git 使用全教程：从工作区原理、现代分支命令到救命灾难恢复指南","全面讲解 Git 三大区域划分、现代 `git switch/restore` 命令、分支管理策略、Merge 与 Rebase 异同、冲突解决以及基于 `git reflog` 的恢复救命手册。",{"title":909,"description":910},"Git Guide: Branches, Merge, Rebase and Recovery","Master Git 3-area architecture, modern `git switch/restore` commands, branching strategies, Merge vs Rebase trade-offs, conflict resolution, and `git reflog` recovery.",{"slug":912,"noIndex":89,"category":90,"date":898,"updatedDate":898,"readingMinutes":91,"tags":913,"relatedTool":904,"cn":918,"en":921},"notion-complete-tutorial",[914,915,916,917,903],"Notion","Productivity","Database","Knowledge Base",{"title":919,"description":920},"Notion 使用全教程：从零搭建个人与团队全能知识库与数据库","全面系统剖析 Notion 万物皆 Block 核心思想、斜杠快捷键、6 大 Database 视图 (Table/Board/Timeline等)、Relation 与 Rollup 关联汇总、Formula 2.0 高级公式及团队 Wiki 模板搭设。",{"title":922,"description":923},"Notion Guide: Knowledge Bases and Databases","A comprehensive guide to Notion's Block-based architecture, slash commands, 6 Database views (Table, Board, Timeline), Relation & Rollup linking, Formula 2.0, and building team Wiki templates.",1795536503322]