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

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

1. TextArea的change事件不触发 [ 100%]

TextArea的change事件不触发 text.on("CHANGE",this,function(){ console.log("text",text.text); }) 2018-04-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: 你参考下官网的事件类...

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

2. laya.display.Text对象的event事件监听无效? [ 97%]

...ovo/edit?html,output   找到原因了 txt.text = '123'; //会调用EVENT.CHANGE事件 // txt.changeText('change text'); //不会调用event.change事件   事件绑定必须写成 txt.on(Laya.Event.CHANGE, this, function () { alert('文本进行了修改!'); }); 之前少了Laya   2017-08-04 ...

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

3. 分享:简单聊天室 [ 82%]

...e:Event):void { // 当按下enter健自动发送文字 if(e.keyCode==13) { change(str); } } // 发送文字样式二,如果input有值的话,发送input的内容 private function onSendClick1():void { change(str2); } // 发送文字样式一,如果input有值的话,发送input的内容 priva...

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

4. 缓动画Bug,给了回调函数之后是直接过时间后执行回调函数,但是之前的缓动画不会执行 [ 73%]

...ir, { x: 200, y: 200 }, 2000, () => { }, Laya.Handler.create(this, this.change));     这里面会直接过两秒执行this.change,而前面x:0->200  y:0->200不会执行  是什么原因??????     2017-08-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

5. 引擎中的修改意见 [ 68%]

...; lang(a[0],p); }else if(a.length == 1){ lang(a[0]); }else { lang(""); } isChanged = true; event(Event.CHANGE); } }public function lang(text:String, args:Array = null):void { text = langPacks && langPacks[text] ? langPacks[text] : text; if (!args || args.length <= 0) { this._text = text; ...

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

6. input输入框修改切换type类型后,内容无法正确显示; [ 67%]

...复 Laya_XS 赞同来自: 不建议你这样修改,this.event(Laya.Event.CHANGE);这个是多余的,你的代码生效无非是text重新赋值内容触发了再一次排版。你可以直接在设置了文本type后,直接修改下文本的内容就可以了。 2021-07-29 0 0 分享 微博 QZ...

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

7. ts如何调用js函数? [ 61%]

...imgSrc: '' } var cropper = $('.imageBox').cropbox(options); $('#file').on('change', function(){ var reader = new FileReader(); reader.onload = function(e) { options.imgSrc = e.target.result; cropper = $('.imageBox').cropbox(options); } reader.readAsDataURL(this.files[0]); }) $('#btnCrop').on('click'...

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

8. 无限循环滚动列表 [ 58%]

...放比 MainPanel.prototype.doSpecialEffect = function () {         //change the scale according to the distance to the middle         var midX = this._list.scrollPane.posX + this._list.viewWidth / 2;         var cnt = this._list.numChildren;         for (var i = 0; i < cnt; i++) {...

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

9. prop 识别不到 [ 52%]

... this.speed);     } }   IDE中报错: [15:26:34] Working directory changed to E:\LayaAirIDE\resources\app   [15:26:35] Using gulpfile E:\myLaya\demo2\.laya\compile.js   [15:26:35] Starting 'compile'...   [15:26:38] 'compile' errored after 2.84 s [15:26:38] Error: E:/myLaya/demo2/src/start...

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

10. 无法触发浏览器文件上传框 [ 48%]

...i - as3、as2、h5 赞同来自: cuixueying 使用原生js里监听input的change事件实现上传,把上传的文件url传递給laya。 缘于laya目前没有上传功能,只能借助原生js上传功能来架桥实现。 请看我的这个作品:http://ask.layabox.com/question/4467 2017-05-...

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