Closed
Description
- Version: 7.3.0
- Platform:Mac
- Subsystem: 10.12.1
when parse a paramsString like "&&q=test&topic=api", where '&&' appear together, Node will get the result like this:
querystring.parse("&&q=test&topic=api") //=>{ '': [ '', '' ], q: 'test', topic: 'api' }
But in other environment, such as Chrome console, we will get the result below:
var paramsString = "&&q=test&topic=api"
var searchParams = new URLSearchParams(paramsString);
for(let p of searchParams){ console.log(p);} //=>["q", "test"],["topic", "api"]
The same as python.