Update AnalyzeByJSoup.kt

This commit is contained in:
Xwite 2024-03-16 08:19:06 +08:00 committed by GitHub
parent ed65514173
commit 90019dd356
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -375,11 +375,12 @@ class AnalyzeByJSoup(doc: Any) {
* 根据索引集合筛选元素
* */
if (split == '!') { //排除
/*
for (pcInt in indexSet) elements[pcInt] = null
elements.removeAll(nullSet) //测试过,这样就行
*/
for (pcInt in indexSet) elements[pcInt].remove()
} else if (split == '.') { //选择
val es = Elements()