大约有 18 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0042 秒)
...e: boolean, repeat: boolean, delay: number, caller: any, method: Function, args: Array<any>, coverBefore: boolean): void; /** * 定时执行一次。 * @param delay 延迟时间(单位为毫秒)。 * @param caller 执行域(this)。 * @param method 定时器回调函数。 * @param args 回调...
来源: Laya_社区 发布时间: 20171109
...: 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
... //////////////////////////////////// protected _onOpen(...args: any[]): void { super._onOpen(args); this.state_ = EConnectionState.eConnected; console.log("conect to 127.0.0.1"); } protected _onMessage(msg:...
来源: Laya_社区 发布时间: 20170602
...md5码封装 tsconfig.json { "compilerOptions": { "module": "commonjs", "target": "es6", "sourceMap": true }, "exclude": [ "node_modules" ] } test: let str = Md5.Instance.get_md5("123456"); console.log(str) //len:32 //e10adc3949ba59abbe56e057f20f883emd5.ts class Md5 { private static _inst:Md5; publi...
来源: Laya_社区 发布时间: 20190321
...ing):void { console.log("url: " + url); if (Laya.Browser.onMiniGame) { var args = {url:url, handler:null}; var handler = Laya.Handler.create(this, this.OnDownloadFileInWxOk, [args], false); args.handler = handler; Laya.MiniAdpter.downLoadFile(url, null, handler); } else { this.DoLoadData(url); } } p...
来源: Laya_社区 发布时间: 20180604
... this.sp.graphics._saveToCmd(this.test1,arr); } test1(x,y,args):void { console.log("args[0]"+args[0]+",args[1]"+args[1]+",args[2]"+args[2]) var sp:Laya.Sprite = args[0]; //sp.graphics.clear(); var ctx=Laya.Render._context.ctx...
来源: Laya_社区 发布时间: 20170316
...提交 2 个回复 hejianchun 赞同来自: 知道了,这样处理 let arg = [{ lPath: path, lType: type }]; if (type == AssetType.Type3D) { Laya.loader.create(path, Laya.Handler.create(this, this.OnAssetComplete, arg)); } private OnAssetComplete(arg: any): void { ...
来源: Laya_社区 发布时间: 20180316
...aller 执行域(this)。 * @param method 定时器回调函数。 * @param args 回调参数。 */ callLater(caller: any, method: Function, args?: Array<any>): void; 这个注释说这个函数延迟执行 延迟多久执行呢 参数里面没有体现啊 2017-03-23 添加评论 免费帖 --> ...
来源: Laya_社区 发布时间: 20170323
... formatting options yet. */ public function formatString(format:String, ...args):String { for (var i:int=0; i<args.length; ++i) format = format.replace(new RegExp("\\{"+i+"\\}", "g"), args[i]); return format; } } 2017-05-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20170525
...s=0; //移动 自己做条件判断停止frameLoop private move(arg) { var t = arg * this.counts var point = this.bezier(t, stX, stY, kzX, kxY, endX, endY); this.testSp= point.x this.testSp= point.y; this.counts +=10; } //t->(0,1) stx:起始位置 kongzhiX:拉力点 ...
来源: Laya_社区 发布时间: 20170830