大约有 41 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0041 秒)
...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
...las', 'res/atlas/image/orb.atlas', 'animate/shiny.atlas', 'res/atlas/image/interface.atlas', 'animate/explosion.atlas', 'animate/mine.atlas', 'res/atlas/image/game.atlas', ] for(let i = 0;i<Laya.ext.toCache.length;i++){ Laya.MiniAdpter.downLoadFile(baseURL+Laya.ext.toCache[i]) }执行后...
来源: Laya_社区 发布时间: 20180825
...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
...过刚好是我这种情况没有处理到……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
... Class Class with type parameter Static property Static method Enumeration Interface
来源: Laya3.0_api 发布时间: 20231115
...入画圆角矩形的函数声明 declare namespace laya.display { interface Graphics { /** * 绘制圆角矩形。 * @param x 开始绘制的 X 轴位置。 * @param y 开始绘制的 Y 轴位置。 ...
来源: Laya_社区 发布时间: 20210123
...l Variable Function Type alias Class Class with type parameter Enumeration Interface Static method
来源: Laya3.0_api 发布时间: 20231115
...,在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
...到骨骼的内容(实现者必须是Laya.Sprite的子类) */ export interface IBindSource{ boneName:string; offestX:number; offestY:number; } 3.一个具体的可绑定内容实现 /** * 可绑定到骨骼槽的内容 */ export default class BindSource extends Laya.Sprite implements...
来源: Laya_社区 发布时间: 20190805
...,创建一个脚本文件,命名为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