JS promise用法 总结 ... 虽然then方法接受两个函数作为参数,但一般只写成功回调,并用catch代替失败回调. //bad promise.then(successFn,errorFn) ...
確定! 回上一頁