insertAdjacentHTML:在指定的地方插入html标签语句。
原型:insertAdjacentHTML(swhere,stext)
参数:
swhere:指定插入html标签语句的地方,有四种值可以用:
1.beforeBegin:插入到标签开始前
2.afterBegin:插入到标签开始标记后
3.beforeEnd:插入到标签结束标记前
4.afterEnd:插入到标签结束标记后
stext:要插入的内容
insertAdjacentText方法与insertAdjacentHTML方法类似,只不过只能插入纯文本,参数相同
好吧,我承认这个我一个也看不懂啊!