This commit is contained in:
rou
2026-03-19 15:17:29 +08:00
parent 81004b437c
commit 3afbee1535
14 changed files with 190 additions and 6 deletions

View File

@@ -6,3 +6,11 @@ const tags = ["变量", "条件", "函数"];
// 2. 转成大写
// 3. 判断是否包含 JS
// 4. 把 tags 用顿号连接成一句话
/*- 把一段带空格的文本去掉首尾空格
- 把结果转成大写
- 判断里面是否包含 `JS`
- 把一个标签数组拼成一个字符串输出*/
const rawTrim = rawTitle.trim()
const rawTo = rawTitle.toUpperCase()
const result = rawTitle.includes("JS")
const tagsJoin = rawTitle.join(",")