js以变量为键
let key = "dynamic",obj={[key]:true
};
obj[key+'2']=key
console.log(obj)
一般在配置文件中應用較多
總結
- 上一篇: axios把post的RequestPa
- 下一篇: git针对已有仓库或已有文件的初始化操作