📜  javascript foreach url 参数 - Javascript 代码示例

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

代码示例1
// Create a test URLSearchParams object
var searchParams = new URLSearchParams("key1=value1&key2=value2");

// Log the values
searchParams.forEach(function(value, key) {
  console.log(value, key);
});