在IE6中使用appendChild方法时出错 [英] Error when using the appendChild method with IE6

查看:81
本文介绍了在IE6中使用appendChild方法时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello EveryOne,


我在使用appendChild方法时遇到ie6的问题。

我在ie8,FireFox和chrome上测试了我的代码我没有任何问题。

我给你的代码:

Hello EveryOne,

I have a problem with ie6 when using the appendChild method.
I have tested my code on ie8, FireFox and chrome and I don''t have any problem.
I give you the code:

展开 | 选择 | 换行 | 行号

推荐答案

我怀疑调用 window.parent.document 无法正常工作。顺便说一句。什么是错误消息?
I suspect the call window.parent.document not to work. btw. what is the error message?


我确定我的错误的原因是appendChild方法。 [我尽量不使用它,我没有错误信息]

错误的消息是:无效的参数。
I''m sure that the cause of my error is the appendChild method. [ I tried not to use it, I don''t have an error message]
The messag of error is : Invalid Argument.


似乎是IE6要求的元素/ HTMLElement作为输入(即使用 document.createElement()方法创建)
seems like IE6 requires an Element/HTMLElement as input (i.e. created with the document.createElement() method)


这篇关于在IE6中使用appendChild方法时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆