Open
Conversation
nobodxbodon
reviewed
Dec 27, 2020
| 文章.push(章节); | ||
| } | ||
| let 排版 = "<div>" + 文章.join("</div><div>") + "</div>"; | ||
| let 结论 = " " + "综上所述, x的重要性真是无与伦比, 正如成语说的:缺一不可。有x, 就如".replace('x', 主题).replace('x', 主题) + 随便取一句(名人名言) + "。 " |
Author
There was a problem hiding this comment.
恕我眼力不好,也不擅长JavaScript,请告诉我在哪里?
There was a problem hiding this comment.
"综上所述, x的重要性真是无与伦比, 正如成语说的:缺一不可。有x, 就如" ——所有中文逗号后面都有个额外空格
nobodxbodon
reviewed
Dec 27, 2020
index.html
Outdated
| 章节长度 = 章节长度 + 句子.length; | ||
| 章节 = 章节 + 句子; | ||
| // 防止章节最后套话没有名言做铺垫 | ||
| if ((300 - 章节.length) < 50){ |
nonusx
reviewed
Feb 2, 2021
| 文章.push(章节); | ||
| } | ||
| let 排版 = "<div>" + 文章.join("</div><div>") + "</div>"; | ||
| let 结论 = " " + "综上所述, x的重要性真是无与伦比, 正如成语说的:缺一不可。有x, 就如".replace('x', 主题).replace('x', 主题) + 随便取一句(名人名言) + "。 " |
There was a problem hiding this comment.
可替换为:
let 结论 = `综上所述, ${主题}的重要性真是无与伦比, 正如成语说的:缺一不可。有${主题}, 就如${随便取一句(名人名言)}`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.