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

bluefish922 2003-03-28 03:06:26
document.all[parentEntityID].insertAdjacentHTML("beforeEnd", newEntity.transformNode(xslDoc))
...全文
315 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
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]对象存在

8,909

社区成员

发帖
与我相关
我的任务
社区描述
XML/XSL相关问题讨论专区
社区管理员
  • XML/XSL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧