Promise - 嵌套函数不起作用

0
33234 次浏览

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

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

 

请尽量让自己的答案能够对别人有帮助

25个答案

默认排序 按投票排序
0

Do you check the keys yet? These keys are very delicate. You have to look slotxo carefully. Check carefully that you write correctly and completely or not. You are wrong size space. It will not be able to display your code. Try to check

0

Nice code! Glad I found the solution here! Thanks for sharing. towing Vienna VA

0

Interesting equation! Thanks for sharing this site! shed builder Springfield VA

0

Interesting posts for you I have pondered about this issue and therefore need to post it. Really cool post, really satisfying and useful post. Thank you. For a good post like this >> เกม

0

This page has been read and captured very well. The more reading, the more knowledge gained It will be great if you follow slot our page.

 

0

Great site! Promising web design

0

Amazing idea! Thanks for sharing this solution and this valuable site. bathroom remodel ideas

0

Great site! Thanks for this equation and solution! towing Arlington VA

0

I have learned a lot of information from your sharing, thanks a lot. Please continue sharing such interesting information. club penguin

0

I have some good information. I can help solve the problem for you.ดาวน์โหลด slotxo

0

This is a great thing, I think everyone feels this information is very valuable, thank you happy wheels

0

Thank you for your post. I have read through some similar topics! However, your article gave me a very special impression, unlike other articles. I hope you continue to have valuable posts like this or more to share with everyone! driving directions

0

I can help you keep working on the code. Just click to talk to us at slotxo

0

北京开发者中心 http://010kfzzx.wikidot.com/
广州开发者中心 http://020kfzzx.wikidot.com/
上海开发者中心 http://021kfzzx.wikidot.com/
成都开发者中心 http://028kfzzx.wikidot.com/
西安开发者中心 http://029kfzzx.wikidot.com/
天津开发者中心 http://022kfzzx.wikidot.com/
重庆开发者中心 http://023kfzzx.wikidot.com/
沈阳开发者中心 http://024kfzzx.wikidot.com/
南京开发者中心 http://025kfzzx.wikidot.com/
武汉开发者中心 http://027kfzzx.wikidot.com/
昆明开发者中心 http://0871kfzzx.wikidot.com/
东莞开发者中心 http://0769kfzzx.wikidot.com/
深圳开发者中心 http://0755kfzzx.wikidot.com/
惠州开发者中心 http://0752kfzzx.wikidot.com/
连云港开发者中心 http://0518kfzzx.wikidot.com/

0

http://cdkfpgs.wikidot.com
http://xakfpgs.wikidot.com
http://kmkfpgs.wikidot.com
http://dgkfpgs.wikidot.com
http://shkfpgs.wikidot.com
http://tjkfpgs.wikidot.com
http://jnkfpgs.wikidot.com
http://zqkfpgs.wikidot.com
http://whkfpgs.wikidot.com
http://gykfpgs.wikidot.com
http://zhkfpgs.wikidot.com
http://hfkfpgs.wikidot.com
http://yzkfpgs.wikidot.com
http://mmkfpgs.wikidot.com
http://lygkfpgs.wikidot.com

http://cdkfpgs.wikidot.com/start
http://xakfpgs.wikidot.com/start
http://kmkfpgs.wikidot.com/start
http://dgkfpgs.wikidot.com/start
http://shkfpgs.wikidot.com/start

0

本文页面的内容,我发现内容对我来说非常有趣和有用,谢谢分享 grindcraft 2 player games

0

Thanks for Nice and Informative Post. This article is really contains lot more information about This Topic.

gmail sign up

0

Some of the dangerous impacts that humankind creates and continues to create in nature will not be restored by any human intervention as for now and in the future.urgent assignment help

0

Looking towards reading more. Good report post.Thanks Again. Great.I really recognize that article. Really enjoyed this informative article post.Much thanks again. Great.I am therefore grateful for your article.Much thanks again.

Kingdom of Baby is your digital go-to platform for your baby’s well-being, for a healthy pregnancy and for your parenthood journey for the sake of a memorable experience.

Pregnancy complications
Parenting Style
Parenting Issues
Healthy and fit while pregnant

https://www.kingdomofbaby.com/toddler/milestones/
https://www.kingdomofbaby.com/the-toddler/
https://www.kingdomofbaby.com/

1 2