MCPcopy Index your code
hub / github.com/keepfool/vue-tutorials / after

Function after

06.Router/basic/js/vue.js:1215–1221  ·  view source on GitHub ↗

* Insert el after target * * @param {Element} el * @param {Element} target

(el, target)

Source from the content-addressed store, hash-verified

1213 */
1214
1215 function after(el, target) {
1216 if (target.nextSibling) {
1217 before(el, target.nextSibling);
1218 } else {
1219 target.parentNode.appendChild(el);
1220 }
1221 }
1222
1223 /**
1224 * Remove el from DOM

Callers 1

vue.jsFile · 0.70

Calls 1

beforeFunction · 0.70

Tested by

no test coverage detected