function setTime(t) {
return new Promise((resolve, reject) => {
setTimeout(() => {
resolve();
}, t);
})
}
(async function() {
console.log(1);
await setTime(1000);
await setTime(1000);
await setTime(1000);
await setTime(1000);
console.log(2);
})()
;(async function() {
var res1 = await fetch('https://api.tf2sc.cn/api/tfcar/car/model', {headers: {Platformtype: 'h5'}}).then(res => res.json());
console.log('res1', res1);
var res2 = await fetch('https://api.tf2sc.cn/api/tfcar/car/price?', {headers: {Platformtype: 'h5'}}).then(res => res.json());
console.log('res2', res2);
var res3 = await fetch('https://api.tf2sc.cn/api/tfcar/car/list?page=1&sort=', {headers: {Platformtype: 'h5'}}).then(res => res.json());
console.log('res3', res3);
})()