[]Naitve下解析xml出错
在非native模式下,使用 var protocols = Laya.Utils.parseXMLFromString(Laya.loader.getRes(url)).firstChild;这样的方式,可以获取到xml对象,调用protocols.children.length没有问题。但是在native模式下。获取出来的对象调用protocols.children.length出错。说是protocols.children对象为null.native下不支持Laya.Utils.parseXMLFromString吗?
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
Aar0n
赞同来自: