错误处理
Gaozhengw
热爱运动,喜欢尝试新鲜事物的小高
展开
-
v-model directives require no argument 解决方案
v-model directives require no argument 是eslint对vetur插件的检查出现的问题原创 2021-01-12 21:28:19 · 25713 阅读 · 9 评论 -
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client原创 2020-10-06 19:25:44 · 1516 阅读 · 0 评论 -
ts ES5 / ES3中的异步函数或方法需要‘Promise‘构造函数,确保对Promise构造函数进行了声明或在--lib选项包含了es2015
ts ES5 / ES3中的异步函数或方法需要’Promise’构造函数(ts An async function or method in ES5/ES3 requires the ‘Promise’ constructor)解决方法:在tsconfig.json中配置lib// tsconfig.json{ "compilerOptions": { "lib": [ "es2015" ] }}解决!!!...原创 2020-09-23 19:16:45 · 4295 阅读 · 0 评论 -
UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throw
刚写了一个异步请求,报错如下:UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().原创 2020-08-15 15:42:59 · 26504 阅读 · 7 评论