Egret之动态加载EXML文件
更新:HHH   时间:2023-1-7


private init():void{
    EXML.load("skins/ButtonSkin.exml",this.onLoaded,this);
}
private onLoaded(clazz:any,url:string):void{
    var button = new eui.Button();
    button.skinName = clazz;
    this.addChild(button);
}
返回开发技术教程...