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

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

41. 引用第三方Js库一直失败,无法解析 [ 49%]

...5311 关注: 3 人 懒货 • 2021-06-16 14:39 是把d.ts里的export改成declare吗,好神奇~为什么这样修改就好了,而github提供的别的ts使用却是export。不太理解 kura • 2021-06-17 17:46 @懒货:因为你已经从index.html导入过了 两种方式都可以用的 看需...

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

42. 关于TS环境下的第三方库导入的疑问 [ 47%]

...  删掉 这样就和Laya库的格式比较像 只是多了个命名空间declare namespace autobahn { export class Session { id: number; realm: string; isOpen: boolean; features: any; ..................................然后在ts文件中 new autobahn.引用华丽丽的出现了   如果谁有更...

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

43. 打开新窗口被拦截,同样的方法用egret和其他h5工程都没有问题 [ 47%]

...看下么 kvs1205 • 2018-03-21 13:59 这里是 laya里面的点击事件 declare function goToNewWindow(url):void; { var url:string = "http://www.baidu.com"; goToNewWindow(url); } 这是index.html的js方法 <script> function goToNewWindow(payurl) { var a = $("<a href='&quo...

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

44. typeScript Java互调问题 [ 45%]

...("js to java");     js2java.back(); } //程序入口 new LayaUISample(); declare var js2java : any;   ————————————————————————————————   错误 05-17 11:33:53.949: E/LayaBox(31963): =====alert=js to java05-17 11:33:54.029: I/MonkVG(...

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

45. 多行输入文本组件 · LayaAir3.0文档 · LAYABOX [ 45%]

...} = Laya; @regClass() export class TextAreaControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.TextArea } ) public txtarea: Laya.TextArea; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执...

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

46. 精灵 · LayaAir3.0文档 · LAYABOX [ 40%]

...perty } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Sprite }) public sprite1: Laya.Sprite; @property({ type: Laya.Sprite }) public sprite2: Laya.Sprite; constructor() { super(); } /** * 组件被激活后执行,此时所...

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

47. 显示文本组件 · LayaAir3.0文档 · LAYABOX [ 39%]

...ty } = Laya; @regClass() export class LabelControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.Label } ) public lab: Laya.Label; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */...

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

48. 分享:Laya开发TS项目使用pomelo客户端SDK(pomelo-jsclient-websocket) [ 39%]

...,API也就几个函数,自行扩展另说,拿我自己的先抛个砖declare class PomeloClient { init(params:any, cb?:Function); request(route:string, msg?:any, cb?:Function); notify(route:string, params:any); on(event:string, cb:Function); off(event:string, cb:Function); disconnect(); } 我...

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

49. 抖音小游戏 · LayaAir3.0文档 · LAYABOX [ 38%]

...property } = Laya; @regClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ o...

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

50. 输入文本组件 · LayaAir3.0文档 · LAYABOX [ 37%]

... = Laya; @regClass() export class TextInputControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.TextInput } ) public txtin: Laya.TextInput; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执...

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