We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
根据书中例子 我在demo.js 中写了 app.use(function *(){ this.demo = 'test text'; }); app.use(function *(){ this.body = this.demo; }); 但是 貌似 运行的时候,没有进入第二个 ,页面显示 no found 求大神给看一下原因
The text was updated successfully, but these errors were encountered:
app.use(function *(next){ this.demo = 'test text'; yield next; }); app.use(function *(){ this.body = this.demo; });
原书代码有问题。
Sorry, something went wrong.
No branches or pull requests
根据书中例子 我在demo.js 中写了
app.use(function *(){
this.demo = 'test text';
});
app.use(function *(){
this.body = this.demo;
});
但是 貌似 运行的时候,没有进入第二个 ,页面显示 no found
求大神给看一下原因
The text was updated successfully, but these errors were encountered: