From c07d5cb2d97dd2bec773fa7ea3fc14b1d79175b7 Mon Sep 17 00:00:00 2001 From: ruanyf Date: Thu, 11 Apr 2024 14:28:33 +0800 Subject: [PATCH] docs(URLSearchParams): fixed typo --- docs/urlsearchparams.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/urlsearchparams.md b/docs/urlsearchparams.md index f874547..44c8000 100644 --- a/docs/urlsearchparams.md +++ b/docs/urlsearchparams.md @@ -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`是两个一模一样的实例对象,但是修改其中一个,不会影响到另一个。