使用 ChildNode.replaceWith();
var span = document.createElement('span'); el.replaceWith(span);
注意:
1. 当前节点必须具有父节点;
2. 替换的参数节点可以是元素节点, 也可以是文本节点;