Skip to content
New issue

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

[bug]编写NodeJS代码时不支持``字符 #286

Open
sxei opened this issue Jun 29, 2022 · 0 comments
Open

[bug]编写NodeJS代码时不支持``字符 #286

sxei opened this issue Jun 29, 2022 · 0 comments

Comments

@sxei
Copy link

sxei commented Jun 29, 2022

已知如下代码不生效:

xxx.com/a.json scriptfile://`
exports.handleRequest = async (ctx, next) => {
    ctx.body = `{a: 1}`;
};
`

需要将ctx.body = {a: 1} 改成 ctx.body = '{a: 1}' 才生效。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant