ci(document): 新增文档内容检索

This commit is contained in:
就眠仪式
2021-10-09 16:15:02 +08:00
parent b4ff364b49
commit 831bad517f
2 changed files with 48 additions and 8 deletions

View File

@@ -175,9 +175,7 @@ const searchList = function (str: String, container: any) {
}
for (var j = 0; j < curItem.length; j++) {
if (curItem.charAt(j) == startChar) {
//如果匹配起始字符,开始查找
if (curItem.substring(j).substring(0, strLen) == str) {
//如果从j开始的字符与str匹配那ok
isMatch = true
break
}