Files
Hydro/packages/ui-default/utils/cloneAttributes.js
T
2021-08-11 21:21:57 +08:00

7 lines
177 B
JavaScript

export default function cloneAttributes(from, to) {
const attributes = from.prop('attributes');
$.each(attributes, function () {
to.attr(this.name, this.value);
});
}