怎么远程加载图片并显示

比如人物头像,远程加载微信头像图片?

cc.loader.load("url", function(err, texture){
    var sp = new cc.SpriteFrame(texture);
    node.getComponent(cc.Sprite).spriteFrame = sp;
});

相关问题论坛上有很多相关帖子,建议先搜索看一下不懂再发帖