js中then()的用法

📝

内容提要

then()方法是异步执行。 意思是:就是当.then()前的方法执行完后再执行then()内部的程序,这样就避免了,数据没获取到等的问题。 语法:promise.then(onCompleted, onRejected); 参数 promise必需。Promise...

🏷️

标签

➡️

继续阅读