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

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

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

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

23. laya.ui.Label [ 52%]

...被显示在屏幕之前调用,一般用于延迟计算数据。 Node  changeText(text:String):void 快速更改显示文本。不进行排版计算,效率较高。 如果只更改文字内容,不更改文字样式,建议使用此接口,能提高效率。 Label clearTimer(caller:*, meth...

来源: Laya2.0_api 发布时间: 20190513

24. laya.ui.Label [ 52%]

...示在屏幕之前调用,一般用于延迟计算数据。 Component  changeText(text:String):void 快速更改显示文本。不进行排版计算,效率较高。 如果只更改文字内容,不更改文字样式,建议使用此接口,能提高效率。 Label clearTimer(caller:*, metho...

来源: laya_api 发布时间: 20170929

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

26. 2D性能优化 · LayaAir3.0文档 · LAYABOX [ 50%]

...简单地显示一行字。为了迎合这一需求,Text提供名为changeText方法可以直接跳过排版。 this.text.text="text"; Laya.stage.addChild(this.text); //后面只是更新文字内容,使用changeText能提高性能 this.text.changeText("text changed."); Text.changeText会...

来源: Laya3.0_文档 发布时间: 20231008

27. laya.display.Input [ 48%]

...个方式不能从根源上解决不同设备字体集差异。 Text isChanged : Boolean[write-only] 一个布尔值,表示文本属性是否有改变。若为true表示有改变。 TextPublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined By  Input()...

来源: laya_api 发布时间: 20170929

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

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

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

29. laya.ui.Button [ 47%]

...ited Protected Methods Show Inherited Protected Methods MethodDefined By changeSize():void 重新调整对象大小。 Component commitMeasure():void 立即执行影响宽高度量延迟调用函数。 Component  createChildren():void[override] 创建并添加控件子节点。 Button  ...

来源: laya_api 发布时间: 20170929

30. laya.ui.Button [ 47%]

...rotected Methods Show Inherited Protected Methods MethodDefined By _childChanged(child:Node = null):void[override] UIComponent _sizeChanged():voidUIComponent  _skinLoaded():voidButton commitMeasure():void 立即执行影响宽高度量延迟调用函数。 UIComponent  createChildren():vo...

来源: Laya2.0_api 发布时间: 20190513