IE 9出错 - 'SCRIPT600:此操作的目标元素无效 [英] Error on IE 9 - 'SCRIPT600: Invalid target element for this operation

查看:254
本文介绍了IE 9出错 - 'SCRIPT600:此操作的目标元素无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此特定页面适用于Firefox和Chrome。
在IE9上,我收到此错误: SCRIPT600:此操作的目标元素无效。
我注意到其他帖子中讨论的此错误消息,但它们处理其他问题。

This particular page works on Firefox and Chrome. On IE9, I am getting this error: SCRIPT600: Invalid target element for this operation. I noticed this error message discussed in other posts as well but they deals with other problems.

这是抛出错误的代码。我正在为我的网站使用趋势图表(和其他表格的高图表)。

Here is the code that throws the error. I am using trends charts (and highcharts for other tables) for my website.

<script>
jsio('import .js.trends');
new js.trends.Table({              // ERROR THROWN ON THIS LINE
target: 'trends_table',
type: 'credits',
noData: 'No credits yet!',
columns: [{
    title: 'Date',
    src: 'begin_date',
    format: 'date'
}, {
    title: 'Time',
    src: 'begin_date',
    format: 'time'
}, {
    title: 'Credits Earned',
    src: 'credits_earned',
    format: 'number'
}, {
    title: 'How Earned',
    src: 'activity',
    format: 'lookup',
    values: {
        0: 'ABC',
        1: 'DEF'
    }
}, {
    title: 'Credits Spent',
    src: 'credits_spent',
    format: 'number'
}]
}).refresh();
</script>

我对我应该做的改变感到有些困惑。有什么建议吗?

I am a little confused about the changes that I should make. Any suggestions?

提前致谢。

推荐答案

我认为IE浏览器对于insertAdjacentHTML方法有不一致的支持,对于像TR和TBODY这样的元素,如果在这些方法上调用该方法,IE将抛出异常。
自IE6以来存在此错误。

I think IE has inconsistent support for the insertAdjacentHTML method, and for elements like TR and TBODY , IE will throw an exception if the method is called on those methods. This error exists since IE6.

这篇关于IE 9出错 - 'SCRIPT600:此操作的目标元素无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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