📜  从查询字符串中删除属性 javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:30.692000             🧑  作者: Mango

代码示例1
const params = new URLSearchParams(location.search)
params.delete('key_to_delete')
console.log(params.toString())