SOURCE

let params={id:1};
let paramsStrArr=['id'].reduce((acc,cur)=>{
  acc.push(cur+'='+params[cur])
  return acc
},[]);
alert(paramsStrArr)
console 命令行工具 X clear

                    
>
console