添加的内容 删除的内容
无编辑摘要 |
小 (文本替换 - 替换“的的”为“的”) |
||
第2,353行: | 第2,353行: | ||
* JSON对象会丢弃含有null值的键。 |
* JSON对象会丢弃含有null值的键。 |
||
* 不能直接分辨带有序列整数键的是JSON数组还是JSON对象。 |
* 不能直接分辨带有序列整数键的是JSON数组还是JSON对象。 |
||
* 带有序列整数键从1开始 |
* 带有序列整数键从1开始的JSON对象会被解析到作为有相同值的JSON数组的相同的表结构,尽管这些不一定总是相等,除非使用了<code>mw.text.JSON_PRESERVE_KEYS</code>。 |
||
==== mw.text.jsonEncode ==== |
==== mw.text.jsonEncode ==== |
||
第2,410行: | 第2,410行: | ||
* 以下字符:<code>"</code>、<code>&</code>、<code>'</code>、<code><</code>、<code>=</code>、<code>></code>、<code>[</code>、<code>]</code>、<code>{</code>、<code>|</code>、<code>}</code> |
* 以下字符:<code>"</code>、<code>&</code>、<code>'</code>、<code><</code>、<code>=</code>、<code>></code>、<code>[</code>、<code>]</code>、<code>{</code>、<code>|</code>、<code>}</code> |
||
* 字符串开头或新行后面 |
* 字符串开头或新行后面的以下字符:<code>#</code>、<code>*</code>、<code>:</code>、<code>;</code>、空格、制表符('\t') |
||
* 空行会有关联的新行或返回转义的字符(Blank lines will have one of the associated newline or carriage return characters escaped) |
* 空行会有关联的新行或返回转义的字符(Blank lines will have one of the associated newline or carriage return characters escaped) |
||
* 字符串开始处或新行后 |
* 字符串开始处或新行后的<code>----</code>会使得第一个<code>-</code>被转义 |
||
* <code>__</code>会使一个下划线被转义 |
* <code>__</code>会使一个下划线被转义 |
||
* <code>://</code>会使冒号被转义 |
* <code>://</code>会使冒号被转义 |