问题
How to cancel the download of an object or texture?
THREE.ImageUtils.loadTexture(...
jsonLoader.load(...
回答1:
AFAIK, it's not built in.
You could edit the XHRLoader class (or create your own) to make the load()
function to return the XMLHttpRequest
here. This would allow you to call its abort()
function.
来源:https://stackoverflow.com/questions/24982978/cancel-download-jsonloader-imageutils-loadtexture