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

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

1. laya.utils.Utils [ 100%]

...Properties PropertyDefined By  parseXMLFromString : Function[static] 将符串解析成 XML 对象。 UtilsPublic Methods  MethodDefined By  bind(fun:Function, scope:*):Function[static] 给传入的函数绑定作用域,返回绑定后的函数。 Utils  fitDOMElementInArea(dom:Object, ...

来源: laya_api 发布时间: 20170929

2. laya.utils.Utils [ 99%]

...Properties PropertyDefined By  parseXMLFromString : Function[static] 将符串解析成 XML 对象。 UtilsPublic Methods  MethodDefined By  bind(fun:Function, scope:*):Function[static] 给传入的函数绑定作用域,返回绑定后的函数。 Utils  fitDOMElementInArea(dom:Object, ...

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

3. laya.utils.Byte_API3.0 [ 99%]

...个由 length 参数指定的长度的 UTF-8 字节序列,并返回一个符串。 一般读取的是由 writeUTFBytes 方法写入的符串。 Parameters Default value len: number = -1 要读的buffer长度,默认将读取缓冲区全部数据。 Returns string 读取的符串。 getUT...

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

4. laya.utils.Utils_API3.0 [ 97%]

...ng, radix?: number): number Defined in laya/utils/Utils.ts:120 解析一个符串,并返回一个整数。和JS原生的parseInt不同:如果str为空或者非数字,原生返回NaN,这里返回0。 Parameters str: string 要被解析的符串。 Default value radix: number = 0 表示...

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

5. Byte二进制读写(JavaScript-LayaAir基础篇(JS)-数据与通信) [ 97%]

...个两个字节的整数 byte1.writeUTFString("hell world");//写入一个符串; byte.writeArrayBuffer(byte1.buffer,6);//把byte1的数据从第六个字节开始读入byte中。省略其中的浮点数20.0和整数16 byte.pos = 0;// console.log(byte.readUTFString())//从byte中读出符串...

来源: Laya2.0_文档 发布时间: 20210714

6. Byte二进制读写(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 97%]

...个两个字节的整数 byte1.writeUTFString("hell world");//写入一个符串; byte.writeArrayBuffer(byte1.buffer,6);//把byte1的数据从第六个字节开始读入byte中。省略其中的浮点数20.0和整数16 byte.pos = 0;// console.log(byte.readUTFString())//从byte中读出符串...

来源: Laya2.0_文档 发布时间: 20210715

7. laya.display.css.TextStyle [ 96%]

...码文本字段。 TextStyle  bgColor : String 文本背景颜色,以符串表示。 TextStyle  bold : Boolean是否为粗体TextStyle  borderColor : String 文本边框背景颜色,以符串表示。 TextStyle  currBitmapFont : BitmapFont当前使用的位置字体。TextStyle  ...

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

8. 组件装饰器说明 · LayaAir3.0文档 · LAYABOX [ 95%]

...TS语言基本类型,不过需要注意的是,基本类型需要使用符串的方式来描述,只有数字、符串、布尔类型,可以用其对象类型来标记。 类型 类型书写示范 类型说明 数字类型 "number" 也可以用Number来标记该类型 单行符串文...

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

9. laya.maths.Point [ 95%]

...指定值。 Point  toString():String返回包含 x 和 y 坐标的值的符串。PointPublic Constants ConstantDefined By  TEMP : Point[static] 临时使用的公用对象。PointProperty Detailxpropertypublic var x:Number该点的水平坐标。yproperty public var y:Number该点的垂直...

来源: laya_api 发布时间: 20170929

10. laya.maths.Point [ 94%]

...指定值。 Point  toString():String返回包含 x 和 y 坐标的值的符串。PointPublic Constants ConstantDefined By  TEMP : Point[static] 临时使用的公用对象。PointProperty Detailxpropertypublic var x:Number该点的水平坐标。yproperty public var y:Number该点的垂直...

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