"ERR_SOCKET_SET_SEND_BUFFER_SIZE_ERROR":-161, "ERR_SOCKS_CONNECTION_FAILED":-120, "ERR_SOCKS_CONNECTION_HOST_UNREACHABLE":-121, "ERR_SPDY_COMPRESSION_ERROR":-363, "ERR_SPDY_FLOW_CONTROL_ERROR":-361, "ERR_SPDY_FRAME_SIZE_ERROR":-362, "ERR_SPDY_INADEQUATE_TRANSPORT_SECURITY":-360, "E...
“To make it easier to diagnose user reports of the sad tab, perhaps we could consider putting the crash exit code on the sad tab as we do for SSL errors. Then users can google for the error, we can seed help center pages to help users, everyone wins.” The page also provides some...
关于 promise 的一种更优雅的写法 async/await 中,await 只会出现在 async 函数中,我们使用 async/await 时,几乎不需要 .then,因为 await 为我们处理等待;但是在代码的顶层,当我们在 async 函数的外部时,我们在语法上是不能使用 await 的,所以通常添加 .then/catch 去处理最终结果或者 error。