(cls: string)
| 59 | let classList = className.split(' '); |
| 60 | if (classList.length > 0) { |
| 61 | const getClassName = (cls: string) => { |
| 62 | if (cls.startsWith('.')) { |
| 63 | return cls.substring(1, cls.length); |
| 64 | } |
| 65 | return cls; |
| 66 | }; |
| 67 | let get = (target, className, idx = 0) => { |
| 68 | let elements = target.getElementsByClassName(getClassName(className)); |
| 69 | if (elements && elements.length > 0) { |