Javascript 由于错误 80020101 无法完成操作

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11295207/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-24 05:20:59  来源:igfitidea点击:

Could not complete the operation due to error 80020101

javascriptextjsextjs4.1

提问by Dragos

I am running an ExtJS 4.1 application. It is running just fine in FireFox, but I get this error in Internet Explorer 8: Could not complete the operation due to error 80020101.

我正在运行 ExtJS 4.1 应用程序。它在 FireFox 中运行良好,但在 Internet Explorer 8 中出现此错误:Could not complete the operation due to error 80020101.

I have found various possible fixes, but none seemed to fit my needs.

我找到了各种可能的修复方法,但似乎没有一个适合我的需要。

How can I make the application work in IE8?

如何使应用程序在 IE8 中工作?

回答by Andrew Leach

Error 80020101 is an AJAX error, so there are a number of potential issues to investigate. A useful starting point might be a prior SO question https://stackoverflow.com/a/10275316/1204258which deals with trailing commas in object definitions.

错误 80020101 是 AJAX 错误,因此有许多潜在问题需要调查。一个有用的起点可能是先前的 SO 问题https://stackoverflow.com/a/10275316/1204258,它处理对象定义中的尾随逗号。

回答by Reza Mortazavi

I got the same error in an included js file. it appeared only in IE.

我在包含的 js 文件中遇到了同样的错误。它只出现在 IE 中。

the problem was because of missing </script>tag at the end of include file.

问题是因为</script>包含文件末尾缺少标签。

hope to help.

希望有所帮助。

回答by jordiburgos

Had the same non-foundable error on IE9.

在 IE9 上有同样的不可发现的错误。

There was an AJAX request transfering a ....

有一个 AJAX 请求传输一个 ....

Solved the error with this:

解决了这个错误:

<script type="text/javascript">
    //<![CDATA[

    ... code goes here ...

    //]]>
</script>

回答by user2055509

Same thing was happening to me while using ExtJS to "require" modular javascript code. The reason: I included the "extends" keyword by mistake, which is reserved in IE8. Make sure you're not using any reserved keywords as your attribute keys without putting them in quotes first.

在使用 ExtJS 来“要求”模块化 javascript 代码时,同样的事情发生在我身上。原因:我错误地包含了“extends”关键字,这是IE8中保留的。确保您没有使用任何保留关键字作为您的属性键,而不是先将它们放在引号中。

回答by Renjith P.N.

I got the same issue in IE, the problem was the html comment used in the javascript Replaced the html comment with javascript comment, then it's works fine for me.

我在 IE 中遇到了同样的问题,问题是 javascript 中使用的 html 注释用 javascript 注释替换了 html 注释,然后它对我来说很好用。