• 2024-08-09promise.catch
    在JavaScript中,如果你在Promise链中使用了catch,并且catch捕获到一个异常后,后面的then仍然会被执行,但有一些具体的行为取决于catch中的操作。1、当promise.catch捕获到异常并返回一个值,那么后续的then会继续执行,并且接收catch中返回的值作为输入。如:newPromise((
  • 2024-05-19My favorite story (revised)
    Recently,thereisabigcatwithyellowandwhitestripesinthehouse,whocaughtmanycompanionsofuswhilewewerestealingsomepiecesoffood.Thecatalwaystookimmediateactionwhenwewerestealingthosepiecesoffoodinthekitchen,sowewer