| 注册
请输入搜索内容

热门搜索

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

 

163个答案

0

This website was a lot of fun for me. You are providing a fantastic resource, and you are giving it away for free. fnaf

0

I see your post and reed. This is good for me this is a good post you give a piece of great information and helpful thanks for sharing this side. 

[url=https://www.bangaloreescortindia.co.in/delhi-escorts.html]Delhi VIP Escort[/url]
[url=https://dgirls.in/aerocity-escorts/]escorts in aerocity[/url]
[url=https://dgirls.in/bhikaji-cama-palace-escorts/]escorts in bhikaji cama palace [/url]
[url=https://dgirls.in/karol-bagh-escorts/]escorts in karol bagh[/url]
[url=https://dgirls.in/paharganj-escorts/]escorts in paharganj[/url]
[url=https://dgirls.in/noida-escorts/]escorts in noida[/url]
[url=https://dgirls.in/hauz-khas-escorts/]escorts in hauz khas[/url]
 

0

Wow! great blog post! this is interesting I'm glad I've been drop here, such a very good blog you have I hope u post more! keep posting. Pergola Builders Bendigo

0
0

voyante audiotel montpellier   You ask your questions to your seer and you receive your answers very quickly. Your psychic gives you his predictions and advice. You ask your questions to your seer and you receive your answers very quickly. Your psychic gives you his predictions and advice. 

  • Ltx→0 (xn - an)(x - a) = na. (n - 1)
  • ∫ xn. dx = xn + 1/(n + 1) + C.
  • ∫ ex. dx = ex + C.
  • ddx d d x xn = nx. n - 1
  • ddx d d x Constant = 0.
  • ddx d d x ex = e. x
0

The article was up to the point and described the information very effectively. Thanks to blog concrete contractors san jose ca

0

Thanks for the great post on your blog, it really gives me an insight on this topic.

<a href="https://smmpanelone.com/">cheapsmmmarket</a>

0

I’ve read some good stuff here. Definitely worth bookmarking for revisiting. I was surprised by how much effort you put to create such a great informative website.

cheapsmmmarket 

0

 The Lowdown on Resin Drives and Driveways If you have been looking for an alternative to concrete, then you may be interested in Resin Drives and Walkways. Resin is made from natural materials such as aggregates and marble, and the surface will allow the ground to breathe. The advantages of resin driveways over concrete include their durability, ease of installation, and beauty. Here are some pros and cons of resin driveways. Read on for more information. After you've gotten the lowdown on resin driveways, you'll be able to make a decision. here are the findingswhy not try these

0

Having a resin driveway can improve the aesthetics and value of your home, and will also help to reduce maintenance costs. Glasgow Resin Driveways LTD  | Berkshire Cleaning LTD  

0

Wow Pretty! This is really a wonderful post. http://www.bakersfieldconcretecontractors.com

0

Get the latest tree service when you visit here:https://www.noexamlifeinsurancefl.com/

0

Thanks for posting this marvelous article. I undoubtedly apprise each of your attempts that you have certainly made to develop this blog post.
multi url opener

0

You've got a lot of interesting articles to share. wordle online It will benefit me, my family, and my friends tremendously. Thank you for making it available to us. 

0

Do you want to attract more customers to your business? Are you looking for a comfortable and relaxing place to work with? A new coat of fresh paint to your commercial property is the answer! We can make your business look great again, be it a restaurant, hotel, or industrial building. Name it all! We offer painting services for all your needs.

0

จกเำพ สล็อตออนไลน์ สล็อตเว็บตรง ที่ดีที่สุด Jokergaming ในเวลานี้ Superslot เล่นง่าย slot pg เหมือนอยู่ใน Area slot สามารถเล่น พีจี สล็อต  โจ๊กเกอร์ บนมือถือ ดาวน์โหลด superslot ให้บริการฝาก-ถอน SUPERCANDY.VIP  

https://supercandy.vip/ 

0

super slot สล็อตออนไลน์ supercandy wallet ที่แรกและที่ สมัครสล็อต เดียวที่มีการแจกเงินรางวัล โปร สล็อต ถอนไม่อั้น เครดิตฟรีสล็อต โปร สล็อต รับไม่อั้น มากที่สุดในเวลานี้ โปร 15 รับ 100 แถมตอนนี้ โปรฝากประจำ สล็อต เพียงแค่สมัครสมาชิกก็รับ โปรคืนยอดเสีย สล็อต เครดิตฟรีสล็อต โปรแนะนำเพื่อน สล็อต  

https://supercandy.vip/ 

0

SUPERCANDY เกมส์สล็อตออนไลน์ เครดิตฟรี500 สล็อตออนไลน์มือถือ SUPER CANDY 168 เล่นออนไลน์ ทดลองเล่นสล็อต ได้เงินจริงได้เงินไว สล็อตออนไลน์ ภาพเกมส์ เทคนิคสล็อต์ แบบใหม่ที่ โปรสล็อต ภาพกราฟฟิค สมัคร superslot สวยสมจริงของ  ทางเข้า สล็อต  

https://supercandy.vip/ 

0

smm panel

Smm heart

This is very well written and your points are well-expressed

0

https://www.seriezloaded.com

1 2 3 4 5 6 7 8 9