node.js - koa响应报错
怪我咯
怪我咯 2017-04-17 11:53:57
0
2
584

第一次用koa,各种混乱。。。

在数据库插入回调中响应,却报错了,这个是怎么回事呀,怎么会已经有了响应呢?

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(2)
黄舟

This error means that the data has been returned, but there is still an attempt to continue writing.
It is recommended to familiarize yourself with the generator before playing koa. This article is good, you can read it
http://blog.stevensanderson.com/2013/12/21/experiments-with-koa-and-ja...

阿神
javascriptvar data = yield promise;
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template