Community
Articles Topics Q&A
Learn
Course Programming Dictionary
Tools Library
Development tools Website Source Code PHP Libraries JS special effects Website Materials Extension plug-ins
Leisure
Game Download Game Tutorials
search
English
简体中文 English 繁体中文 日本語 한국어 Melayu Français Deutsch
Login
singup

  • Popular searches:
  • PHP
  • MySQL
  • jquery
  • HTML
  • CSS
  • Whole station
  • Course
  • Article
  • Q&A
  • Download
Found a total of 10000 related content
  • Uncaught (In Promise) error when rejecting a Promise using setTimeout() in JavaScript

    I'm learning Promises in JavaScript and I decided to implement a simple Promise where I would set a timeout of 3 seconds and then reject the Promise. After rejecting it, I catch the error and display it in an HTML element. The promise runs perfectly and displays the message, but I get the following ...

    P粉139351297 2023-09-05 17:39:46 0  2  497

  • javascript - Why is Promise executed immediately when returned from Promise? Please explain the principle. Thank you.

    The following is the code {code...} Why is the Promise object returned in then resolved in the next then? Is the execution chain of the second then the same as the second Promise?

    黄舟 2017-05-19 10:10:29 0  3  882

  • javascript - promise scheduling issues

    {Code...} node is inconsistent with the browser operation. It is normal to understand that p1 resolves a promise internally and is not synchronous, so it is obviously later than p2.

    阿神 2017-07-05 10:54:30 0  1  931

  • javascript - Questions about using promise

    {Code...} The first parameter method of then should be that promise is executed when resolved, but console.log(b) is actually executed. Why is this?

    高洛峰 2017-05-19 10:17:46 0  2  426

  • Why is it a disadvantage that a promise cannot be canceled

    Under what circumstances do I need to cancel a promise?

    淡淡烟草味 2017-06-15 09:22:29 0  4  894

  • How to return data from Promise response

    How to correctly return data from Promise? I have the following code: const axios = require("axios").default; async function getApiData(pathName: string, locale: string) { const { axiosRequestUrl } = getApiVars(pathName, local

    P粉988025835 2023-07-28 10:32:51 0  1  465

  • javascript - Promise in node is also nested

    1. If there are two mongodb collections, one is users and the other is posts, and the corresponding users information is displayed in the posts list, the conventional asynchronous processing is too nested. Use Promise to solve it, and found that there is also a problem when solving promises. 2. The ...

    世界只因有你 2017-06-05 11:11:11 0  5  760

Public welfare online PHP training,Help PHP learners grow quickly!

About us Disclaimer Sitemap

© php.cn All rights reserved