| 注册
请输入搜索内容

热门搜索

Java Linux MySQL PHP JavaScript Hibernate jQuery Nginx

Promise - 嵌套函数不起作用

0
39005 次浏览

我想知道为什么以下代码不起作用,毕竟它只是嵌套函数:

var calculus = new Promise((resolve, reject) => (resolve) => resolve(3))

var calculus2 = new Promise((resolve, reject) => {
  () => resolve(4)
})

calculus.then((result) => console.log(result))
calculus2.then((result) => console.log(result))

 

89个答案

0

Fun to play, easy to understand. jackpot often.makampoppop002

superslot joker123 pg joker slot joker gaming  slotxo

0

I really like the application you share. It is great and meets my requirements.basement repair

0

This is a nice article you shared great information i have read it thanks for giving such a wonderful blog for the reader.
maitland accountants

0

Thanks for allowing us to leave a comment here.Amazing site

0

感谢您与我们分享如此重要的信息。非常好的和解释清楚的文章。Bin Cleaning Park City

0

Your article is very useful, the content is great, I have read a lot of articles, but for your article, it left me a deep impression, thank you for sharing.  spanish dictionary

0

Hi there! You make so many good points here that I read your article a couple of times. This is really nice content for your readers. our site

0

这是另外一种适合保守玩家的玩法英国乐透,玩家需要预测冠军号码和亚军号码的数字之和澳洲幸运20,如果预测正确即中奖,幸运飞艇如果预测错误则没有中奖。而前几期的开奖结果可以给玩家很大的提示。

0
我感谢您分享这么多有用的信息。 

-pool enclosures miami
0
我真的很喜欢你想到的概念。你真的很有创意。 open this link
0

100% DMCA 的离岸托管忽略了托管、离岸专用服务器、离岸 VPS 托管。ทางเข้าjoker

0

Go through these funny work quotes which acts like a stress-buster, even when you celebrate the joy of who you are and what you do.

0

Offshore Hosting with 100% DMCA ignored Hosting, Offshore Dedicated Server, Offshore VPS Hosting. offshorededi is the Most Secure Offshore Host. Providing Offshore Streaming Servers as well.

0

Very important! Thanks for sharing these information. roofing grand junction co

0
0

Excellent website you have here, so much cool information!..concrete slab

0

I was extremely pleased to find this great site. I want to to thank you for ones time for this particularly wonderful read! Denver Tree Trimming

0

The blog written is extremely impressive, with a great topic. Thanks for sharing.Dallas drywall installation

0

日本藤素現已被日本藥品署認定為10大男性安全藥品之一,無任何副作用,現已成為日本男士愛不釋手的理想藥品。本品採用世界最先進的提取技術,將純天然的原材料,高度微化, 能使人體吸收特快,它不會產生任何副作用及依賴性.

0

Your content is given more knowledgeable content and you show great authors. I think this is really good to know! http://www.acrepairdenver.com/

1 2 3 4 5