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

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

321. 想用js写一个什么也不继承的类,但每次实例化这个类的时候会报错,是不是这个类写得不对呀 [ 67%]

...这个类的时候会报错,是不是这个类写得不对呀 var Test = (function(_super){ function Test(){         Test.super(this);         console.log("执行测试构造函数"); } //注册类 Laya.class(Test,"Test",_super); //获取执行域 var _proto = Test.prototype; //_proto. retur...

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

322. Getcomponent 报错Uncaught (in promise) TypeError: Right-hand side of 'instanceof' is not an object [ 67%]

...歌chrom96版本滤镜报错 导微信小程序报错window.focus is not a function laya2 发布微信开放域工程,用微信开发者工具打开报错 Laya使用fairygui的富文本xml解析报错 小游戏项目 加载有中文的json文件 报错 问题状态 最新活动: 2023-07-06 16:44 ...

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

323. Laya下的图片上传示例(完整版) [ 67%]

...var fileReader:any = new Laya.Browser.window.FileReader(); file.onchange = function(e:any):void { if(file.files.length>0) { if(20*1024<file.files[0].size) { console.log("图片大小不能超过20kb!") }else{ fileReader.readAsDataURL(file.files[0]); //转换图片格式为字符编码 } } }; f...

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

324. laya.components.AnimatorController2D_API3.0 [ 67%]

...建 Parameters url: string Returns boolean off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?: any[]): EventDispatcher Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:112 从 EventDispatcher 对象中删...

来源: Laya3.0_api 发布时间: 20231115

325. LayaNative端使用.ttf字体 [ 67%]

... laya.utils.Browser; import laya.utils.Handler; public class Test { public function Test() { Laya.init(550,400); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load("hu.ttf",Handler.create(this,onLoaded),null,Loader.BUFFER); } private function onLoaded():void { var arr:ArrayBuffer=Laya.loader.getRes("hu....

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

326. 销毁有声音的spine动画,skeleton中的_onAniSoundStoped有时会报undefined错误 [ 67%]

...删掉所有的声音channel     */     __proto._onAniSoundStoped=function(force){         var _channel;         for (var len=this._soundChannelArr.length,i=0;i < len;i++){             _channel=this._soundChannelArr;             if (_channel.isStopp...

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

327. 微信小游戏的位图字体加载报错! [ 67%]

...晰的解决方法! gameThirdScriptError t.getElementsByTagName is not a function TypeError: t.getElementsByTagName is not a function     at t.e.parseFont (http://127.0.0.1:63921/game/code.js:1:12413)     at e.s.onLoaded (http://127.0.0.1:63921/game/code.js:1:176642)     at e.u (http://127.0...

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

328. worker的问题 [ 67%]

... use the 'new' operator, this DOM object constructor cannot be called as a function." 2018-01-08 0 0 分享 微博 QZONE 微信 fool_tiger 赞同来自: 还要在index.html中写啊,我以为在as3脚本里写就行了? 2018-01-08 0 1 分享 微博 QZONE 微信 fool_tiger 赞同来自: 可以调...

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

329. js项目使用缓动类Tween报错 [ 67%]

...使用缓动类Tween报错 代码如下 var Tww = laya.utils.Tween; to0(); function to0() { Tww.to(this.lis, { alpha: 0.5 }, 500, null, Handler.create(this, to1)); } function to1() { Tww.to(this.lis, { alpha: 1 }, 500, null, Handler.create(this, to0)); } 在AS中是没有问题的。 2018-05-24 添...

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

330. 使用Tween.to完成回调异常! [ 67%]

...:-30}, 600, Ease.expoOut, Handler.create(this,onFloatComplete)); protected function onFloatComplete(callBack:Function):void {  this.removeSelf(); } 我用这个缓动来做飘字效果,完成回调的时候,把飘字对象在场景上移除,结果执行次数很多之后,发现场景上有...

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