Through the image url to create a Sprite, image how to cache or downloaded to a local?

Cocos2d-JS-v3.0-alpha
Through the image url to create a Sprite, image how to cache or downloaded to a local?

Hi,

The textureCache caches the image you’re loading by a URL automatically.

If you want to preload the image, please use “serverImg”, e.g.

{type:“serverImg”, src:“http://www.xxx.com/xxx.png”},