请问这行代码是什么意思,为什么报错:该操作的目标元件无效!

bluefish922 2003-03-28 03:06:26
document.all[parentEntityID].insertAdjacentHTML("beforeEnd", newEntity.transformNode(xslDoc))
...全文
146 点赞 收藏 4
写回复
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
bluefish922 2003-03-28
大虾:请问下怎样得到某节点是第几级节点呀?:)
回复
ssm1226 2003-03-28
document.all[parentEntityID].insertAdjacentHTML("beforeEnd", newEntity.transformNode(xslDoc))

document.all[parentEntityID]确定一个控件对象
-----------------------------------------------------------------
object.insertAdjacentHTML(sWhere, sText)
Inserts the given HTML text into the element at the location.

sWhere:beforeBegin-->Inserts sText immediately before the object.
afterBegin-->Inserts sText after the start of the object but before all other content in the object.
beforeEnd-->Inserts sText immediately before the end of the object but after all other content in the object.
afterEnd-->Inserts sText immediately after the end of the object.
------------------------------------------------------------------------
回复
bluefish922 2003-03-28
您能帮我解释一下代码的意思吗?
回复
ssm1226 2003-03-28
确定document.all[parentEntityID]对象存在
回复
发动态
发帖子
XML/XSL
创建于2007-09-28

8779

社区成员

XML/XSL相关问题讨论专区
申请成为版主
社区公告
暂无公告