我们把highlight.js里面的内容进行了一定的修改 #45

Closed
luoyu wants to merge 1 commits from Bug392-LuoYu into master
1 changed files with 0 additions and 3 deletions

View File

@ -39,9 +39,6 @@ function highLight() {
var list2 = sel_word2.value.split(" ");
for (var i = 0; i < list2.length; ++i) {

list2内容在EnglishPal中未收到使用,可以连带删除。

list2内容在EnglishPal中未收到使用,可以连带删除。
list2[i] = list2[i].replace(/(^\s*)|(\s*$)/g, "");
if (list2[i] != "" && "<mark>".indexOf(list2[i]) == -1 && "</mark>".indexOf(list2[i]) == -1) {
txt = txt.replace(new RegExp(list2[i], "g"), "<mark>" + list2[i] + "</mark>");
}
}
}
document.getElementById("article").innerHTML = txt;