MCPcopy
hub / github.com/jeecgboot/JeecgBoot / get

Function get

jeecgboot-vue3/src/components/jeecg/JVxeTable/utils.ts:67–73  ·  view source on GitHub ↗
(target, className, idx = 0)

Source from the content-addressed store, hash-verified

65 return cls;
66 };
67 let get = (target, className, idx = 0) => {
68 let elements = target.getElementsByClassName(getClassName(className));
69 if (elements && elements.length > 0) {
70 return elements[idx];
71 }
72 return null;
73 };
74 let element: HTMLElement = get(cell, classList[0]);
75 for (let i = 1; i < classList.length; i++) {
76 if (!element) {

Callers 2

getElementFunction · 0.70
fetchFunction · 0.50

Calls 1

getClassNameFunction · 0.85

Tested by

no test coverage detected