5
1
2
44
336
610
113
问题由来: 做微信小游戏,需要动态加载微信头像,动态生成图片代码为: let pic = item.getChildByName('pic'); let sprite = pic.getComponent(cc.Sprite); cc.loader.load({url:user.avatarUrl,type:'png'},function (err,img) { sprite.spriteFram...