then 用在句尾是什么意思,.then()这个方法是什么意思?

发布时间:2020-07-10 21:47:13

then 用在句尾是什么意思,.then()这个方法是什么意思?

网友回答

副词 ad.
  1.那时,当时
  He worked in that factory then.
  他那时在那个工厂工作。
  2.然后,接着
  They chatted for a while and then went to work.
  他们聊了一会儿,然后上班去了。
  3.那么,既然这样
  When will the manager be available, then?
  那么经理什么时候可以接见我呢?
  4.于是,所以
  He, then, decided to accept the proposal.
  于是,他决定接受这一建议。
  5.此外,还有
  The applicant has had some experience in this kind of work, and then he is easy to get along with.
  那位申请人以前做过这种工作,另外此人很容易相处。
  形容词 a.
  1.当时的[B]
  The rule was laid down by the then chairman of the mittee.
  那条规章是当时的委员会主席订下的。
  名词 n.
  1.那时,当时[U]
  We waited for him till then.
  我们等他等到那个时候。

网友回答


  then()方法是异步执行。
  意思是:就是当.then()前的方法执行完后再执行then()内部的程序,知这样就避免了,数据没获取到道等的问题。
  语法:promise.then(onCompleted, onRejected);
  参数
  promise
  必需。
  Promise 对象。
  onCompleted
  必需。
  承诺成回功完成时要答运行的履行处理程序函数。
  onRejected
  可选。
  承诺被拒绝时要运行的错误处理程序函数。
以上问题属网友观点,不代表本站立场,仅供参考!