最近微信头像更新。 之前 用loadres加载,微信头像url + .jpg 加载,现在 微信 不支持这种形式的加载了。加 “.jpg” 的无法加载了。
http://xxxxx/vi_32/xxxx/0 可以访问,
http://xxxxx/vi_32/xxxx/0.jpg 无法访问。
最近微信头像更新。 之前 用loadres加载,微信头像url + .jpg 加载,现在 微信 不支持这种形式的加载了。加 “.jpg” 的无法加载了。
http://xxxxx/vi_32/xxxx/0 可以访问,
http://xxxxx/vi_32/xxxx/0.jpg 无法访问。
已解决
怎么解决的?
怎么解决的?
急求 同样问题
怎么解决的?
1.6版本的要加类型才可以成功了。
requestImage: function(url,callback){
cc.loader.load({url: url, type: ‘jpg’}, function (err,tex) {
if(tex){
var spriteFrame = new cc.SpriteFrame(tex, cc.Rect(0, 0, tex.width, tex.height));
callback(err,spriteFrame);
}
});
},