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

大约有 40 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0060 秒)

21. 在Native端IOS下提示反射找不到方法? [ 57%]

...ayVideo", url); }   ---JSProxy.h #import <Foundation/Foundation.h> @interface JSProxy : NSObject +(void)playVideo: (NSString*) url; // 只支持对象类型String类型用NSString @end   ---JSProxy.mm #import "JSProxy.h" #import "ViewController.h" #import <conchRuntime.h> @implementati...

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

22. Laya如何处理类与类之间的依赖关系 [ 57%]

...过刚好是我这种情况没有处理到……var classPattern = /\b(?:interface|class)\b\s+(\w+)(?:\s*(?:extends|implements)\s*((?:(?:(?:\w+\.)*(?:\w+)),?\b)+))?/; var modeuleHelp = /\b(?:namespace|module)\b\s+((?:\w\.?)+)/; var importHelp = /\bimport\b.*?=\s*((?:\w+\.?)+)/ //.exec(str)[1] var in...

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

23. 如何使用TS的命名空间(namespace)? [ 57%]

...ommandMap = {}; export function registerCommand(){ //doSomething }; export interface ICommand{ excute(type:string, params:any):void; } }   2019-09-21 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 186*****180 相关问题 LayaAir3D Unit...

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

24. Laya_API3.0 [ 55%]

... Class Class with type parameter Static property Static method Enumeration Interface

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

25. 分享一个Graphics画圆角矩形的封装 [ 54%]

...入画圆角矩形的函数声明 declare namespace laya.display {     interface Graphics {         /**          * 绘制圆角矩形。          * @param x   开始绘制的 X 轴位置。          * @param y   开始绘制的 Y 轴位置。          ...

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

26. laya.utils.Utils_API3.0 [ 53%]

...l Variable Function Type alias Class Class with type parameter Enumeration Interface Static method

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

27. TS项目中怎么使用promise [ 50%]

...,在libs文件夹下面建立,extend.d.ts,加入下面的代码: interface Promise<T> {     then<TResult1, TResult2>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2&...

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

28. Laya 绑定显示内容到骨骼动画 [ 47%]

...到骨骼的内容(实现者必须是Laya.Sprite的子类) */ export interface IBindSource{ boneName:string; offestX:number; offestY:number; }   3.一个具体的可绑定内容实现 /** * 可绑定到骨骼槽的内容 */ export default class BindSource extends Laya.Sprite implements...

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

29. Windows扩展 · LayaAir3.4 · 引擎文档 · LAYABOX [ 44%]

...,创建一个脚本文件,命名为TestLib.ts,添加如下代码: interface ITestLib { nativeAdd(a: number, b: number): number; } export const testLib: ITestLib = Laya.importNative("LayaExt.dll"); 接着在组件脚本Main.ts中添加代码: import { testLib } from "./TestLib"; const { reg...

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

30. laya.utils.Browser_API3.0 [ 34%]

... Class Class with type parameter Static property Static method Enumeration Interface

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