Skip to content

Commit

Permalink
docs(URLSearchParams): fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanyf committed Apr 11, 2024
1 parent 9195d65 commit c07d5cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/urlsearchparams.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ fetch('https://example.com/api', {

```javascript
const params1 = new URLSearchParams('?a=1&b=2');
const params2 = new URLSearchParams(params);
const params2 = new URLSearchParams(params1);
```

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

0 comments on commit c07d5cb

Please sign in to comment.