大约有 177 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0045 秒)
... private var log:ILogger; } public function Game() { CONFIG::debug { log = Log.getLogger("Game"); } this.addEventListener(Event.ADDED_TO_STAGE, onAdde...
来源: Laya_社区 发布时间: 20200217
String转XMLDom的问题 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
...一下Unicode与ascii互转对应表再补充一个writeMultiByte public function writeMultiByte(value:String,charSet:String):void { value = value + ""; if(charSet=="UNICODE" || charSet=="unicode") { ...
来源: Laya_社区 发布时间: 20170407
...工具类。 Public Properties PropertyDefined By parseXMLFromString : Function[static] 将字符串解析成 XML 对象。 UtilsPublic Methods MethodDefined By bind(fun:Function, scope:*):Function[static] 给传入的函数绑定作用域,返回绑定后的函数。 Utils fitDOMElemen...
来源: Laya2.0_api 发布时间: 20190513
...))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
...工具类。 Public Properties PropertyDefined By parseXMLFromString : Function[static] 将字符串解析成 XML 对象。 UtilsPublic Methods MethodDefined By bind(fun:Function, scope:*):Function[static] 给传入的函数绑定作用域,返回绑定后的函数。 Utils fitDOMElemen...
来源: laya_api 发布时间: 20170929
...复 Laya_Aaron 赞同来自: Base64Tool 类 看里面方法 public static function encodeByte(byte:ByteEx, start:int = 0, end:int = -1):String { if (end < 0) { end = byte.length; ...
来源: Laya_社区 发布时间: 20190117
...(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
...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
...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