寻求帮助,koajs--前端异步请求问题?
app.post('/signup',function* (){
var body = yield parse(this),
name = body.username,
email = body.email,
password = body.password,
password_re = body.password_re;
this.body = {
msg:'创建成功!',
status:1
};
});
请求后xhr.status为0. this.status = 200, 也是一样的结果。或者求一个异步请求的例子,国内是否有koajs交流群?