由于错误800a025e,无法完成操作 [英] Could not complete the operation due to error 800a025e
本文介绍了由于错误800a025e,无法完成操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
此错误在IE10/11中意味着什么:
What does this error mean in IE10/11:
Error: Could not complete the operation due to error 800a025e.
那我该如何调试呢?
它说这行:
this.nativeSelection.removeAllRanges();
https://code.google.com/p/rangy/source/browse/trunk/src/js/core/wrappedselection.js#416
在此处查看其运行情况: http://panmedia.github.io/raptor-editor/tests/cases/selection/selection-expand.html
See it in action here: http://panmedia.github.io/raptor-editor/tests/cases/selection/selection-expand.html
推荐答案
我最近出现此错误,我使用以下chceck进行了修复:
I had this error coming up recently, I fixed it with the following chceck:
var sel = window.document.getSelection();
if (sel.rangeCount > 0 && sel.getRangeAt(0).getClientRects().length > 0) {
sel.removeAllRanges();
}
这篇关于由于错误800a025e,无法完成操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文