• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 177 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0045 秒)

1. 新手!谁懂得把下面两个文件成layaair可以运行的代码 [ 100%]

...         private var log:ILogger;         }           public function Game()         {             CONFIG::debug             {                 log = Log.getLogger("Game");             }               this.addEventListener(Event.ADDED_TO_STAGE, onAdde...

来源: Laya_社区 发布时间: 20200217

2. StringXMLDom的问题 [ 98%]

StringXMLDom的问题 public static function stringToXMLDom(value:String):XmlDom { var xml:XmlDom; /*[IF-SCRIPT-BEGIN] if(document.all) {   xml=new ActiveXObject("Microsoft.XMLDOM");   xml.loadXML(value); } else { xml = new DOMParser().parseFromString(value, "text/xml"); } [IF-SCRIPT-END...

来源: Laya_社区 发布时间: 20170221

3. Unicode与ascii互对应表 [ 97%]

...一下Unicode与ascii互对应表再补充一个writeMultiByte public function writeMultiByte(value:String,charSet:String):void         {             value = value + "";             if(charSet=="UNICODE" || charSet=="unicode")             {              ...

来源: Laya_社区 发布时间: 20170407

4. laya.utils.Utils [ 95%]

...工具类。 Public Properties PropertyDefined By  parseXMLFromString : Function[static] 将字符串解析成 XML 对象。 UtilsPublic Methods  MethodDefined By  bind(fun:Function, scope:*):Function[static] 给传入的函数绑定作用域,返回绑定后的函数。 Utils  fitDOMElemen...

来源: Laya2.0_api 发布时间: 20190513

5. laya支持的发布模式有哪些? [ 94%]

...))debugger;//在此行会自动断点 ================== AS: setName(123); function setName(name:String):void { trace(name); } JS: function setName (name){ if(!__DEBUGTYPE__(name,'String'))debugger;//在此行会自动断点 trace(name); } =================== AS: var asString:String = asObj as Strin...

来源: Laya_社区 发布时间: 20151203

6. laya.utils.Utils [ 94%]

...工具类。 Public Properties PropertyDefined By  parseXMLFromString : Function[static] 将字符串解析成 XML 对象。 UtilsPublic Methods  MethodDefined By  bind(fun:Function, scope:*):Function[static] 给传入的函数绑定作用域,返回绑定后的函数。 Utils  fitDOMElemen...

来源: laya_api 发布时间: 20170929

7. Laya有没有将base64字符串Laya.Byte的方法? [ 93%]

...复 Laya_Aaron 赞同来自: Base64Tool 类 看里面方法 public static function encodeByte(byte:ByteEx, start:int = 0, end:int = -1):String         {             if (end < 0)             {                 end = byte.length;            ...

来源: Laya_社区 发布时间: 20190117

8. 关于HttpRequest [ 89%]

...(obj); var hr = new Laya.HttpRequest(); hr.once(Laya.Event.PROGRESS, this, function (e) { console.log(e); }); hr.once(Laya.Event.COMPLETE, this, function () { console.log(hr.data); }); hr.once(Laya.Event.ERROR, this, function (e) { console.log(e); }); hr.send('http://stone.tt.be-xx.com/git/test.php'...

来源: Laya_社区 发布时间: 20170628

9. LayaAir中字符串xml [ 89%]

...3 浏览: 1254 关注: 2 人 yurong3000 • 2017-02-21 10:55 public static function stringToXMLDom(value:String):XmlDom { var xml:XmlDom; /*[IF-SCRIPT-BEGIN] if(document.all) {   xml=new ActiveXObject("Microsoft.XMLDOM");   xml.loadXML(value); } else { xml = new DOMParser().parseFr...

来源: Laya_社区 发布时间: 20170215

10. 分享个资源加载的方法,类似白鹭的加载方式 [ 86%]

...ng,caller: any){ Laya.loader.load("res/" + srcName,new Laya.Handler(caller,function(arg: any){ if(arg){ RES.groups = arg.groups; RES.resources = arg.resources; RES.getInstance().event(RES.ONLOADEDRESJSON,arg); }else{ RES.getInstance().event(RES.ONLOADERRORRESJSON,arg); } })) } /** * groupName 资源...

来源: Laya_社区 发布时间: 20161011