创建一个包含URL参数的对象
字符串 default: window?.location?.search
default: window?.location?.search
序列对象
https://www.30secondsofcode.org/js/s/get-url-parameters
getURLParameters('google.com'); // {}getURLParameters('http://url.com/page?name=Adam&surname=Smith');// {name: 'Adam', surname: 'Smith'} Copy
getURLParameters('google.com'); // {}getURLParameters('http://url.com/page?name=Adam&surname=Smith');// {name: 'Adam', surname: 'Smith'}
创建一个包含URL参数的对象