insertAdjacentHTML和insertAdjacentText的使用(在指定位置插入代码或者文字) insertAdjacentText方法与insertAdjacentHTML方法类似,只不过只能插入纯文本,参数相同。