首页 > 问答 > 正文
phpcn_u15822017-07-07 10:36:47
promise函数没有resolve,正确的写法参照下面的代码
var promise = new Promise((resolve, reject) => {resolve(1)}); promise.then((data) => { console.log(data)});