时间:2021-07-01 10:21:17 帮助过:10人阅读
insertAdjacentText 在指定位置插入给定的文本。 Syntax object.insertAdjacentText(sWhere, sText) Parameters sWhere Required. String that specifies where to insert the text, using one of the following values: beforeBegin Inserts the text immediately before the element. afterBegin Inserts the text after the start of the element but before all other content in the element. beforeEnd Inserts the text immediately before the end of the element but after all other content in the element. afterEnd Inserts the text immediately after the end of the element. sText Required. String that specifies the text to insert. 手册上的。。
------解决方案--------------------
参考帖子 http://topic.csdn.net/u/20120329/09/e12eb48a-aa5f-4f99-84de-189b34f9e285.html
#7 的回复。
------解决方案--------------------
回复
把id传进去,不也可以?