You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At present, there is no problem. In this case, I need to do some operations after loading the image. Feasible.
for(vari=0;i<length;i++){elem=nodes[i];if(inView(elem,view)){if(unload){elem.setAttribute('data-echo-placeholder',elem.src);}if(elem.getAttribute('data-echo-background')!==null){elem.style.backgroundImage="url("+elem.getAttribute('data-echo-background')+")";}else{elem.src=elem.getAttribute('data-echo');// Add the callback after the completion of listening picture loadingnodes[i].onload=function(){callback(this,'success');}}if(!unload){elem.removeAttribute('data-echo');elem.removeAttribute('data-echo-background');}callback(elem,'load');}elseif(unload&&!!(src=elem.getAttribute('data-echo-placeholder'))){if(elem.getAttribute('data-echo-background')!==null){elem.style.backgroundImage="url("+src+")";}else{elem.src=src;}elem.removeAttribute('data-echo-placeholder');callback(elem,'unload');}}if(!length){echo.detach();}
The front-end judges whether the currently loaded image is complete or not through the success field of Op.
(PS: success is defined by yourself)
At present, there is no problem. In this case, I need to do some operations after loading the image. Feasible.
The front-end judges whether the currently loaded image is complete or not through the success field of Op.
(PS: success is defined by yourself)
The text was updated successfully, but these errors were encountered: