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

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

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

...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

2. TextArea的change事件不触发 [ 92%]

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

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

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

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

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

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

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

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

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. 无限循环滚动列表 [ 59%]

...放比 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

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

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

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

8. LAYABOX游戏实时语音之APP版本 [ 46%]

...S_NETWORK_STATE"/> <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" /> <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <uses-permission android:name="and...

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