| 注册
请输入搜索内容

热门搜索

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))

 

58个答案

0

背叛伤害不了你,能伤你的,是你太在乎。分手伤害不了你,能伤你的,幸运飞艇
是回忆。无疾而终的恋情伤害不了你澳洲幸运20,能伤你的,是希望英国乐透。你总以为是感情伤害了你,其实伤到你的人,永远是自己。
 

0

I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post.

 <a href="https://tilerstoowoomba.com.au/">Toowoomba tiling</a>
 

0
-1

[url=https://starbet123.com/]star vegas[/url]

0

<a href="https://starbet123.com/">star vegas</a> 
star vegas slotonline ++99 

0

Building insulation is any object in a building used as insulation for any purpose. While the majority of insulation in buildings is for thermal purposes.
insulation contractors Buffalo

0
0

Your article is awesome. I enjoyed reading your article. This is really a great document for me. I have bookmarked it and I am looking forward to reading new articles. Please continue to uphold!

Little Alchemy

0

您要扩展的完成代码基于bashcompinit。结果,您需要将代码编写为Bash完成函数。这意味着您应该将完成匹配项添加到数组中COMPREPLY。由于函数返回时该数组为空,因此 pg slot _bash_complete向Zsh报告_main_complete失败。

0

I hope that someone will help you on fixing that code about nested function. fort worth welding companies

0

Thank you. It was great to see useful information. Please visit my site next time. plasterer sydney

0

lead generation Great Information sharing .. I am very happy to read this article .. thanks for giving us go through info.Fantastic nice

0

This place is nice, but not nice enough to die in. Let's kill them and get out.

0

Your website is very good, the content is original, unique and interesting. Thank you very much for sharing this wonderful information. Very interesting topic.ทางเข้าjoker

0

เราเป็นผู้ให้บริการที่มีตัวเกมส์สล็อตให้เลือกเล่นจำนวนมากเพราะเรามีการพัฒนาเกมใหม่เพื่อเอาใจและตอบสนองความต้องการของผู้เล่นตลอดเวลาเราได้เลือกเกมยอดนิยมจากผู้เล่นมาส่วนหนึ่ง เพื่อเป็นแนวทางสำหรับผู้เล่นเกมหน้าใหม่หรือเพื่อเปิดทางให้กับผู้เล่นเกมส์สล็อตเก่า ๆ ที่อาจจะกำลังมองหาเกมส์ใหม่ ๆ เล่นเกมเรามีเว็บที่ดีที่สุดในตอนนี้มาแนะนำ
https://www.xosuperslot.com
https://www.xopgth.com/
https://xojoker.com/
https://www.xoautobet.com/
https://www.xogclubth.com/

0

what a nice weather we have

0
0

Click here to check more services of our site, read more on how to do your own DIY projects.

0

I am also very interested in this issue and find many very good. thank you very much!

t rex run

0

I really love reading your blog. It is very well composed and easy to understand. Thanks very much!

usa map

1 2 3