这个错误在 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 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 http://panmedia.github.io/raptor-editor/tests/cases/selection/selection-expand.html
我最近出现了这个错误,我通过以下检查修复了它:
var sel = window.document.getSelection();
if (sel.rangeCount > 0 && sel.getRangeAt(0).getClientRects().length > 0) {
sel.removeAllRanges();
}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)