search

Next Section: 如何终端promise链844 plays

5 秒后自动播放下一节
  Watch Again

Web front-end Promise tutorial from entry to mastery

Introduction >
ChapterCourseware
Chapter1Introduction

Promise video introduction

02 minutes36 seconds

Introduction to Promises

05 minutes40 seconds
Chapter2First Experience

First experience with Promise 01

09 minutes54 seconds

First experience with Promise 02

03 minutes06 seconds
Chapter3Practical exercises

fs read file

05 minutes03 seconds

ajax request

05 minutes48 seconds

Encapsulate fs reading file operation

03 minutes47 seconds

The promisify method performs promise style conversion

03 minutes17 seconds

Promise encapsulates AJAX requests

03 minutes58 seconds
Chapter4Object properties

Introduction to object status attributes

03 minutes48 seconds

Introduction to object result value attributes

02 minutes22 seconds
Chapter5work process

Promise workflow

01 minutes33 seconds

Promise API-constructor-then-catch

04 minutes54 seconds

Promise.resolve method

04 minutes21 seconds

Promise.reject method

02 minutes45 seconds

Promise.all methods

03 minutes33 seconds

Promise.race method

02 minutes50 seconds
Chapter6Promise key issues

How to modify the state of an object

02 minutes51 seconds

Can multiple callbacks be executed?

02 minutes37 seconds

Issues with the order of changing status and specifying callbacks

07 minutes04 seconds

What determines the result returned by the then method?

05 minutes17 seconds

Chain multiple tasks

04 minutes22 seconds

abnormal penetration

03 minutes25 seconds

How to terminate a promise chain

02 minutes41 seconds
Chapter7Promise custom packaging

Initial structure building

04 minutes19 seconds

Resolve and regect structure construction

04 minutes35 seconds

resolve and regect code implementation

05 minutes59 seconds

Thtow throws exception to change state

03 minutes48 seconds

The state of a Promise object can only be modified once

03 minutes03 seconds

then method executes callback

05 minutes14 seconds

Execution of asynchronous task callbacks

08 minutes10 seconds

Specify multiple callback implementations

05 minutes06 seconds

Synchronously modify the status then method result return

09 minutes42 seconds

Asynchronously modify the status then method result return

12 minutes44 seconds

then method improvement and optimization

07 minutes45 seconds

catch method - exception penetration and value passing

10 minutes16 seconds

resolve method encapsulation

04 minutes36 seconds

reject method encapsulation

02 minutes14 seconds

all method encapsulation

09 minutes59 seconds

race method encapsulation

05 minutes04 seconds

Asynchronous execution of then method callback

04 minutes09 seconds

Implementation of class version

05 minutes22 seconds
Chapter8async function

async function

03 minutes56 seconds

await expression

05 minutes00 seconds

Combining async and await in practice

05 minutes10 seconds

async and await combined to send ajax request

03 minutes02 seconds
  • CancelreplySending
  • Cancelpost a noteSending