LayaBox1.0时可以通过data来当做url传递给loadImage这个方法引擎就会帮解码显示出来。
[*][code]var sp: Laya.Sprite = new Laya.Sprite();[/code][/*]
[*][code]sp.loadImage(data, 0, 0, 200, 200);[/code][/*]
[*][code]Laya.stage.addChild(sp);[/code][/*]
但现在2.0的loadImage 的 data 就只会被默认为url了,
[*][code]var sp: Laya.Sprite = new Laya.Sprite();[/code][/*]
[*][code]sp.loadImage(data);[/code][/*]
[*][code]Laya.stage.addChild(sp); [/code][/*]
本来1.0时loadImage这个方法中的data参数不仅仅是地址的url还接收base64和svg的格式,那么我想问一下2.0的接收base64和svg的格式的方法被移到什么地方了?