promise函数没有resolve,正确的写法参照下面的代码
var promise = new Promise((resolve, reject) => {resolve(1)}); promise.then((data) => { console.log(data)});
promise函数没有resolve,正确的写法参照下面的代码