Skip to content

Commit 538e436

Browse files
committed
add cr.js
1 parent 38d2118 commit 538e436

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cr.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export const cr = (tag, parent, cls) => {
2+
const c = document.createElement(tag);
3+
if (cls) t.className = cls;
4+
if (parent) parent.appendChild(c);
5+
return c;
6+
};

0 commit comments

Comments
 (0)