简体   繁体   English

缓冲-UE:INDEX_SIZE_ERR:DOM异常1

[英]buffered - UE: INDEX_SIZE_ERR: DOM Exception 1

Function causes an error in the browser chrome, how to treat? 功能在浏览器Chrome中导致错误,该如何处理?

http://jsfiddle.net/6QaWc/ http://jsfiddle.net/6QaWc/

Uncaught Error: INDEX_SIZE_ERR: DOM Exception 1 
pu 
(anonymous function) 
jQuery.event.dispatch
elemData.handle

I would be very grateful for any help! 我将不胜感激!

It appears that you're trying to activate the objects before they are ready to be used. 看来您正在尝试激活准备使用的对象。

If I wrap part of your code in the 'loadeddata' event: 如果我将部分代码包装在“ loadeddata”事件中:

$(mme).bind('loadeddata', function() { 
    console.log("Data is loaded...");
    gp(); 
    setTimeout(function () {
        gt();
    }, 2500);
});

the error goes away. 错误消失了。 Now, I'm not sure if this works the way you want it to, because I noticed some strange behavior in how the progress meter works after that, but maybe that will give you a nudge in the right direction to pursue a working solution? 现在,我不确定这是否能按您希望的方式工作,因为在此之后,我注意到进度表的工作方式有些奇怪的行为,但是也许这会使您朝着正确的方向前进以寻求可行的解决方案?

http://jsfiddle.net/6QaWc/16/ http://jsfiddle.net/6QaWc/16/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM