Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/guide/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ In addition, the words `true`, `false`, `null` and `undefined` are only allowed
To reference a property that is not a valid identifier, you can use segment-literal notation, `[`. You may not include a
closing `]` in a path-literal, but all other characters are allowed.

JavaScript-style strings, `"` and `'`, may also be used instead of `[` pairs.

<ExamplePart examplePage="/examples/literal-segments.md" show="template" />

## HTML-escaping
Expand Down
2 changes: 0 additions & 2 deletions src/zh/guide/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@ _Whitespace_ `!` `"` `#` `%` `&` `'` `(` `)` `*` `+` `,` `.` `/` `;` `<` `=` `>`

若想引用一个并非合法的标识符,你可以使用 `[`。在路径表达式中你不必使用 `]` 来关闭它,但其他表达式中是需要的。

JavaScript 样式的字符串如 `"` 和 `'` 也可用于替代 `[`。

<ExamplePart examplePage="/zh/examples/literal-segments.md" show="template" />

## HTML 转义
Expand Down