why do searchParams output is different than usual

前端 未结 0 754
滥情空心
滥情空心 2021-02-04 02:39

const url = require(\'url\');

const myUrl = new URL(\'http://www.example.com/pages?id=888&search=login\');

console.log(myUrl.searchParams); // URLSearchParams

相关标签:
回答
  • 消灭零回复
提交回复
热议问题