Merge pull request #1140 from 1van0v/patch-4

change parameter name to the set one
This commit is contained in:
Ilya Kantor 2019-07-11 23:31:17 +03:00 committed by GitHub
commit e4b7f669d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,7 +94,7 @@ For example:
let url = new URL('https://google.com/search');
url.searchParams.set('q', 'test me!'); // added parameter with a space and !
alert(url); // https://google.com/search?query=test+me%21
alert(url); // https://google.com/search?q=test+me%21
url.searchParams.set('tbs', 'qdr:y'); // this parameter specifies for date range for Google Search