Skip to content

Commit c07d5cb

Browse files
committed
docs(URLSearchParams): fixed typo
1 parent 9195d65 commit c07d5cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/urlsearchparams.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ fetch('https://example.com/api', {
6363

6464
```javascript
6565
const params1 = new URLSearchParams('?a=1&b=2');
66-
const params2 = new URLSearchParams(params);
66+
const params2 = new URLSearchParams(params1);
6767
```
6868

6969
上面示例中,`params1``params2`是两个一模一样的实例对象,但是修改其中一个,不会影响到另一个。

0 commit comments

Comments
 (0)