const citys = ['北京', '上海', '广州'];
const salary = [5000, 5500, 6000];
const citySalary = citys.map((city, index) => ({ [city]: salary[index] }));
console.log(citySalary);
const [cityBj, citySh, cityGz] = citySalary;
console.log(cityBj, citySh, cityGz);