Content-Length: 286543 | pFad | http://github.com/javascript-tutorial/zh.javascript.info/pull/1271/files

27 修正部分反斜杠因为md渲染问题无法显示的问题 by Drtxdt · Pull Request #1271 · javascript-tutorial/zh.javascript.info · GitHub
Skip to content
Open
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: 1 addition & 1 deletion 9-regular-expressions/07-regexp-escaping/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ alert( "Chapter 5.1".match(reg) ); // null

因为反斜杠被字符串“消耗”了。我们可能还记得,常规字符串有自己的特殊字符,例如 `\n`,反斜杠用于转义。

下面是 "\d\.\d" 的感知形式:
下面是 "\d\\.\d" 的感知形式:

```js run
alert("\d\.\d"); // d.d
Expand Down








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/javascript-tutorial/zh.javascript.info/pull/1271/files

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy