Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a9c543b

Browse files
committed
docs(bom): fix location
1 parent 51a586c commit a9c543b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎docs/bom/location.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ params.toString() // "foo=3"
481481
```javascript
482482
// URL: https://example.com?version=1.0
483483
var params = new URLSearchParams(location.search.slice(1));
484-
params.set('version', 2.0);
484+
params.set('version', '2.0');
485485

486486
window.history.replaceState({}, '', location.pathname + `?` + params);
487487
// URL: https://example.com?version=2.0

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /