fix bug.
This commit is contained in:
parent
e0dd38625b
commit
02bd562a45
|
@ -7794,7 +7794,7 @@
|
||||||
//处理id和class
|
//处理id和class
|
||||||
if(options.identity){
|
if(options.identity){
|
||||||
for(const item of 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);
|
else element.classList.add(item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue