This commit is contained in:
Rintim 2023-09-28 19:16:57 +08:00
parent e0dd38625b
commit 02bd562a45
1 changed files with 1 additions and 1 deletions

View File

@ -7794,7 +7794,7 @@
//处理id和class
if(options.identity){
for(const item of options.identity){
if (test.indexOf("#")==0) element.id = item.slice(1);
if (item.indexOf("#")==0) element.id = item.slice(1);
else element.classList.add(item);
}
}