insertAdjacentHTML() 原生js添加节点
element.insertAdjacentHTML(position,text);
var obj = document.getElementById("btn1");
obj.insertAdjacentHTML("afterEnd","<br><input name="txt1">");
原文地址:https://www.cnblogs.com/putaopi/p/11690929.html
时间: 2024-10-16 16:01:54