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

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

671. layaair2.0)请问js的Laya.Event.FRAME怎么用,看api中有,但写了不执行。 [ 53%]

... Laya.stage.on(Laya.Event.FRAME,this.onEnterFrame); onEnterFrame() { t++; console.log("t="+t); } 希望每帧 t+1.然后显示 2018-11-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 tudouhu 赞同来自: coder ...

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

672. 渠道对接 中 js 与 java 的互调的问题 [ 53%]

...ata={type:"test"}; conchMarket.login(JSON.stringify(sData),function(data){ console.log(data); // 数据处理. }); 请指教! 2017-07-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: ...

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

673. Handler.create的回收问题 [ 53%]

...d { this.h2 = Laya.Handler.create(this, this.loadPicComplete, null, true); console.log(this.h1 == this.h2);//为什么是false } } } new laya.Test(); 2017-12-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 chech...

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

674. List不能监听MouseMove,怎么判断是长按拖动还是滑动 [ 53%]

...全局) if(list.scrollBar.value==down_value) { time++; if(time==100) { console.log("长按") } } else { time=0; }

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

675. 一个关于判断浏览器类型的问题 [ 53%]

...:56 我们的后台懒:) ying1247680740 • 2017-12-29 13:26 @z1071051378: console.log("浏览器名称:" + navigator.appName + "\n 浏览器版本号:" + navigator.appVersion + "\n 浏览器发送的字符串:" + navigator.userAgent + "\n 浏览器的代码...

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

676. 求解clip的切片得到的单个width为0 [ 53%]

...Clip_win.png",11, 1); this.singleNumberW = this.k.width; this.k.index = 2; console.log(this.singleNumberW+"======"+this.k.width); this.addChild(this.k);   是不是因为图片太大,cilp有什么限制吗 附件 : --> 2017-08-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

677. 想绘制一个自适应得圆角矩形框,失败了,求解惑 [ 53%]

...); var stageWidth = Laya.stage.width; var stageHeight = Laya.stage.height; console.log(stageWidth*0.05+":"+stageHeight); var path = [ ["moveTo",stageWidth*0.05,0], ["actTo",stageWidth*0.8,0,stageWidth*0.8,stageHeight*0.05,10], ["actTo",stageWidth*0.8,stageHeight*0.6,stageWidth*0.75,stageHeight*0.6,1...

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

678. laya里面TS的正则表达式跟js不同的 [ 53%]

...]{15,18}$");             if(reg.test(str)){                 console.log("ok");             }   验证手机号码  var reg:RegExp = new RegExp("^1[0-9]{10}$"); 2017-06-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

679. Laya.Scene.open 中的complete参数如何取得场景实例? [ 53%]

...e /*我以为第一个参数就是给场景实例对象*/){         console.log("scene:" + typeof(scene)); // 这里打印出来的是scene:object         scene.getTestVallue(); // 我定义的一个public 方法,这里找不到这个函数,会报错,所以scene参数并不是给...

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

680. Laya.Scene.open传递的param,要如何获取,注释说在onOpened中,如果拿到onOpened [ 53%]

...要打开的场景中的runtime脚本中写 onOpened(XXX: string): void { console.log(XXX); } 这样就可以取到 ,嗯 就是还没怎么试传1个以上的值 155*****831 • 2019-09-23 15:52 如果真的要传多个值得你可以定义到一个数组中,然后把数组传过去,可能行...

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