JS代码如下:
var self = this;
cc.loader.load(headimgurl, function (err, texture) {
if (err) {
cc.log(err);
}
self.headimg.spriteFrame = new cc.SpriteFrame(texture);
});
Creator版本v1.3.3,在Chrome运行,可以加载本地localhost的图片,在手机上加载微信头像报错:
01-06 11:40:57.861 18626-18660/com.youxibi.ddz2 D/CCFileUtils-android.cpp: asset is nullptr
01-06 11:40:57.883 18626-18660/com.youxibi.ddz2 D/cocos2d-x debug info: Error: Download text failed: http://wx.qlogo.cn/mmopen/Po9mkm3Z42tolYpxUVpY6mvCmqalibOpcJ2jG3Qza5qgtibO1NLFNUF7icwCibxPicbGmkoiciaqKEIdvvveIBfEQqal8vkiavHIeqFT/0
期望解决上述问题

