以下代码中的输出结果是const promise1 = new Promise(function (resolve, reject) {setTimeout(function(){resolve('foo');}, 300);});promise1.then(function(){return 'bar';}).then(function (value) {console.log('hi,' + value); // 输出结果})

A."hi,bar B."hi,foo C."hi,undefined D."hi 此题为多项选择题。

时间:2024-02-19 19:59:01

相似题目