大约有 708 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0047 秒)
Laya_社区(372) Laya3.0_api(110) Laya2.0_api(105) laya_api(67) Laya2.0_文档(26) Laya2.0_示例(10) Laya3.0_文档(9) Laya_示例(9)
...***.jpg"; var miniMap = new Image(); miniMap.onload=function(){ if(miniMap.complete==true){ var img = circle_image(miniMap,750,1334); console.log(miniMap); var miniMap1 = new Laya.Image(); miniMap1.loadImage(img); Laya.stage.addChild(miniMap1); } } miniMap.src=url; function circle_image(img, o...
来源: Laya_社区 发布时间: 20181125
...l:String, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, complete:Handler = null):Sprite 加载并显示一个图片。功能等同于graphics.loadImage方法。支持异步加载。 注意:多次调用loadImage绘制不同的图片,会同时显示。 Sprite localToGlobal(poin...
来源: laya_api 发布时间: 20170929
...Laya.Event.PROGRESS, this, this.onHttpRequestProgress); hr.once(Laya.Event.COMPLETE, this, (response)=>{ UIFactory.closeWaitBar(); this.onHttpRequestComplete(response); if(handleOk){ handleOk(response); } }); hr.once(Laya.Event.ERROR, this, (e)=>{ UIFactory.closeWaitBar(); this.onHttpRequestEr...
来源: Laya_社区 发布时间: 20190308
...会忽略lock=true的资源。 Returns void Static load load(url: string, complete: Handler): void Defined in laya/d3/animation/AnimationClip.ts:61 加载动画片段。 Parameters url: string 动画片段地址。 complete: Handler 完成回掉。load Returns void Globals "laya/d3/animation/Animati...
来源: Laya3.0_api 发布时间: 20231115
...ion.js来做人脸识别的: Browser.window.$('#mvideo').faceDetection({ complete: function (faces):void { trace("faces: "+ faces); }, error:function (code, message):void { trace('Error: ' + message); } }); Laya_Aaron • 2018-06-25 21:01 之后使用需要用js调 需要用__JS__(&quo...
来源: Laya_社区 发布时间: 20180625
...监测连资源都不会加载,开发者工具里没有显示,但加载complete回调还会执行....,蒙了,有没大神指点下呢 2017-12-22 0 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: 是跨域了吧? 可以先按照这个https://ask.layabox.com/question/13 帖...
来源: Laya_社区 发布时间: 20171222
...a.Ease.elasticOut,Laya.Handler.create(this, function(){ console.log("complete"); }),ConstValue.animationDelay); 无法直接设置原因是浅拷贝变量无法同步到原对象中去 2018-01-12 5 6 分享 微博 QZONE 微信 183*****755 赞同来自: 更改完后,必须set 下 该属...
来源: Laya_社区 发布时间: 20170630
...blem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /var/root/.npm/_logs/2018-05-08T04_07_13_726Z-debug.log 环境: mac 10.13.4 (17E202) 尝试了 sudo npm install layacmd -g sudo -s su - 都试了, 还有...
来源: Laya_社区 发布时间: 20180508
...te = new Sprite(); var xhr:HttpRequest = new HttpRequest(); xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.send("res/monkey2.png","","get","arraybuffer"); } private function completeHandler(data:Object):void { //加载完成返回的data是arraybuffer; ...
来源: Laya_社区 发布时间: 20171011
...); var url = "http://thirdqq.qlogo.cn/g%3Fb% ... 3B%3B xhr.once(Laya.Event.COMPLETE, this, this.completeHandler, [url, 1]); xhr.once(Laya.Event.ERROR, this, this.errorHandler); xhr.send(url, "", "get", "arraybuffer"); } } GameMain.prototype.completeHandler = function (URL, id, data) { // private com...
来源: Laya_社区 发布时间: 20180629