Skip to content

Commit b70fe3a

Browse files
authored
Merge pull request #17 from uphg/patch-2
docs: fix code block name in url.md
2 parents 88b340f + 7918017 commit b70fe3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/url.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ function handleFiles(files) {
175175

176176
`URL()`构造函数解析非法网址时,会抛出错误,必须用`try...catch`代码块处理,这样终究不是非常方便。因此,URL 对象又引入了`URL.canParse()`方法,它返回一个布尔值,表示当前字符串是否为有效网址。
177177

178-
```javascipt
178+
```javascript
179179
URL.canParse(url)
180180
URL.canParse(url, base)
181181
```

0 commit comments

Comments
 (0)