写出带有句点,逗号等的扩展字符串段落时,JavaScript中的语法错误?

时间:2018-12-09 22:22:48

标签: javascript string split concatenation

const rules = "1. No hate speech, racism, drama, political talk, flame wars, trolling or any form of spam.
2. No self promoting in the discord or others streams.
3. No unrelated links/referrals/promotions without permission
4. No begging for views, hosts, follows, etc.
5. Do not spam emotes or random things in streams. Keep comments related to the stream and contribute.
6. Do not promote other discord servers or communities here!
7. Please try to follow channel topics."

此外,我一直尝试使用反引号来编写这些规则,因此,在调用命令时,它会在不和谐的代码块中显示,但无论如何我都会遇到语法错误。我今年早些时候参加了Java课,所以我不得不从头开始重新学习Javascript。谢谢!

0 个答案:

没有答案