GlobalObject 类

定义

存储常量、数据类型信息、实用工具函数以及对基于原型的对象的引用。Stores constants, data type information, utility functions, and references to prototype-based objects. 此类属于内置对象模型类别。This class belongs to the built-in object model category.

此 API 支持产品基础结构,不能在代码中直接使用。

public ref class GlobalObject
public class GlobalObject
type GlobalObject = class
Public Class GlobalObject
继承
GlobalObject
派生

字段

Infinity

此 API 支持产品基础结构,不能在代码中直接使用。

表示正无穷。Represents positive infinity. 此字段为常数。This field is constant.

NaN

此 API 支持产品基础结构,不能在代码中直接使用。

表示不是数字 (NaN) 的值。Represents a value that is not a number (NaN). 此字段为常数。This field is constant.

originalActiveXObjectField

此 API 支持产品基础结构,不能在代码中直接使用。

存储对 ActiveXObjectConstructor 对象的引用。Stores a reference to an ActiveXObjectConstructor object.

originalArrayField

此 API 支持产品基础结构,不能在代码中直接使用。

存储对 ArrayConstructor 对象的引用。Stores a reference to an ArrayConstructor object.

originalBooleanField

此 API 支持产品基础结构,不能在代码中直接使用。

存储对 BooleanConstructor 对象的引用。Stores a reference to a BooleanConstructor object.

originalDateField

此 API 支持产品基础结构,不能在代码中直接使用。

存储对 DateConstructor 对象的引用。Stores a reference to a DateConstructor object.

originalEnumeratorField

此 API 支持产品基础结构,不能在代码中直接使用。

存储对 EnumeratorConstructor 对象的引用。Stores a reference to an EnumeratorConstructor object.

originalErrorField

此 API 支持产品基础结构,不能在代码中直接使用。

存储对 ErrorConstructor 对象的引用。Stores a reference to an ErrorConstructor object.

originalEvalErrorField

此 API 支持产品基础结构,不能在代码中直接使用。

存储对 ErrorConstructor 对象的引用。Stores a reference to an ErrorConstructor object. 该对象初始化为 EvalErrorThe object is initialized as an EvalError.

originalFunctionField

此 API 支持产品基础结构,不能在代码中直接使用。

存储对 FunctionConstructor 对象的引用。Stores a reference to a FunctionConstructor object.

originalNumberField

此 API 支持产品基础结构,不能在代码中直接使用。

存储对 NumberConstructor 对象的引用。Stores a reference to a NumberConstructor object.

originalObjectField

此 API 支持产品基础结构,不能在代码中直接使用。

存储对 ObjectConstructor 对象的引用。Stores a reference to an ObjectConstructor object.

originalObjectPrototypeField

此 API 支持产品基础结构,不能在代码中直接使用。

存储对 ObjectPrototype 对象的引用。Stores a reference to an ObjectPrototype object.

originalRangeErrorField

此 API 支持产品基础结构,不能在代码中直接使用。

存储对 ErrorConstructor 对象的引用。Stores a reference to an ErrorConstructor object. 该对象初始化为 RangeErrorThe object is initialized as a RangeError.

originalReferenceErrorField

此 API 支持产品基础结构,不能在代码中直接使用。

存储对 ErrorConstructor 对象的引用。Stores a reference to an ErrorConstructor object. 该对象初始化为 ReferenceErrorThe object is initialized as a ReferenceError.

originalRegExpField

此 API 支持产品基础结构,不能在代码中直接使用。

存储对 RegExpConstructor 对象的引用。Stores a reference to a RegExpConstructor object.

originalStringField

此 API 支持产品基础结构,不能在代码中直接使用。

存储对 StringConstructor 对象的引用。Stores a reference to a StringConstructor object.

originalSyntaxErrorField

此 API 支持产品基础结构,不能在代码中直接使用。

存储对 ErrorConstructor 对象的引用。Stores a reference to an ErrorConstructor object. 该对象初始化为 SyntaxErrorThe object is initialized as a SyntaxError.

originalTypeErrorField

此 API 支持产品基础结构,不能在代码中直接使用。

存储对 ErrorConstructor 对象的引用。Stores a reference to an ErrorConstructor object. 该对象初始化为 TypeErrorThe object is initialized as a TypeError.

originalURIErrorField

此 API 支持产品基础结构,不能在代码中直接使用。

存储对 ErrorConstructor 对象的引用。Stores a reference to an ErrorConstructor object. 该对象初始化为 URIErrorThe object is initialized as a URIError.

originalVBArrayField

此 API 支持产品基础结构,不能在代码中直接使用。

存储对 VBArrayConstructor 对象的引用。Stores a reference to a VBArrayConstructor object.

undefined

此 API 支持产品基础结构,不能在代码中直接使用。

表示为 null 的值。Represents a value that is null.

属性

ActiveXObject

此 API 支持产品基础结构,不能在代码中直接使用。

获取一个对 ActiveXObjectConstructor 对象的引用。Gets a reference to an ActiveXObjectConstructor object.

Array

此 API 支持产品基础结构,不能在代码中直接使用。

获取一个对 ArrayConstructor 对象的引用。Gets a reference to an ArrayConstructor object.

boolean

此 API 支持产品基础结构,不能在代码中直接使用。

获取与 JScript boolean 数据类型相对应的托管类型。Gets the managed type that corresponds to the JScript boolean data type.

Boolean

此 API 支持产品基础结构,不能在代码中直接使用。

获取一个对 BooleanConstructor 对象的引用。Gets a reference to a BooleanConstructor object.

byte

此 API 支持产品基础结构,不能在代码中直接使用。

获取与 JScript byte 数据类型相对应的托管类型。Gets the managed type that corresponds to the JScript byte data type.

char

此 API 支持产品基础结构,不能在代码中直接使用。

获取与 JScript char 数据类型相对应的托管类型。Gets the managed type that corresponds to the JScript char data type.

Date

此 API 支持产品基础结构,不能在代码中直接使用。

获取一个对 DateConstructor 对象的引用。Gets a reference to a DateConstructor object.

decimal

此 API 支持产品基础结构,不能在代码中直接使用。

获取与 JScript decimal 数据类型相对应的托管类型。Gets the managed type that corresponds to the JScript decimal data type.

double

此 API 支持产品基础结构,不能在代码中直接使用。

获取与 JScript double 数据类型相对应的托管类型。Gets the managed type that corresponds to the JScript double data type.

Enumerator

此 API 支持产品基础结构,不能在代码中直接使用。

获取一个对 EnumeratorConstructor 对象的引用。Gets a reference to an EnumeratorConstructor object.

Error

此 API 支持产品基础结构,不能在代码中直接使用。

获取一个对 ErrorConstructor 对象的引用。Gets a reference to an ErrorConstructor object.

EvalError

此 API 支持产品基础结构,不能在代码中直接使用。

获取一个对 ErrorConstructor 对象的引用。Gets a reference to an ErrorConstructor object. 该对象初始化为 EvalErrorThe object is initialized as an EvalError.

float

此 API 支持产品基础结构,不能在代码中直接使用。

获取与 JScript float 数据类型相对应的托管类型。Gets the managed type that corresponds to the JScript float data type.

Function

此 API 支持产品基础结构,不能在代码中直接使用。

获取一个对 FunctionConstructor 对象的引用。Gets a reference to a FunctionConstructor object.

int

此 API 支持产品基础结构,不能在代码中直接使用。

获取与 JScript int 数据类型相对应的托管类型。Gets the managed type that corresponds to the JScript int data type.

long

此 API 支持产品基础结构,不能在代码中直接使用。

获取与 JScript long 数据类型相对应的托管类型。Gets the managed type that corresponds to the JScript long data type.

Math

此 API 支持产品基础结构,不能在代码中直接使用。

获取一个对 MathObject 对象的引用。Gets a reference to a MathObject object.

Number

此 API 支持产品基础结构,不能在代码中直接使用。

获取一个对 NumberConstructor 对象的引用。Gets a reference to a NumberConstructor object.

Object

此 API 支持产品基础结构,不能在代码中直接使用。

获取一个对 ObjectConstructor 对象的引用。Gets a reference to an ObjectConstructor object.

RangeError

此 API 支持产品基础结构,不能在代码中直接使用。

获取一个对 ErrorConstructor 对象的引用。Gets a reference to an ErrorConstructor object. 该对象初始化为 RangeErrorThe object is initialized as a RangeError.

ReferenceError

此 API 支持产品基础结构,不能在代码中直接使用。

获取一个对 ErrorConstructor 对象的引用。Gets a reference to an ErrorConstructor object. 该对象初始化为 ReferenceErrorThe object is initialized as a ReferenceError.

RegExp

此 API 支持产品基础结构,不能在代码中直接使用。

获取一个对 RegExpConstructor 对象的引用。Gets a reference to a RegExpConstructor object.

sbyte

此 API 支持产品基础结构,不能在代码中直接使用。

获取与 JScript sbyte 数据类型相对应的托管类型。Gets the managed type that corresponds to the JScript sbyte data type.

short

此 API 支持产品基础结构,不能在代码中直接使用。

获取与 JScript short 数据类型相对应的托管类型。Gets the managed type that corresponds to the JScript short data type.

String

此 API 支持产品基础结构,不能在代码中直接使用。

获取一个对 StringConstructor 对象的引用。Gets a reference to a StringConstructor object.

SyntaxError

此 API 支持产品基础结构,不能在代码中直接使用。

获取一个对 ErrorConstructor 对象的引用。Gets a reference to an ErrorConstructor object. 该对象初始化为 SyntaxErrorThe object is initialized as a SyntaxError.

TypeError

此 API 支持产品基础结构,不能在代码中直接使用。

获取一个对 ErrorConstructor 对象的引用。Gets a reference to an ErrorConstructor object. 该对象初始化为 TypeErrorThe object is initialized as a TypeError.

uint

此 API 支持产品基础结构,不能在代码中直接使用。

获取与 JScript uint 数据类型相对应的托管类型。Gets the managed type that corresponds to the JScript uint data type.

ulong

此 API 支持产品基础结构,不能在代码中直接使用。

获取与 JScript ulong 数据类型相对应的托管类型。Gets the managed type that corresponds to the JScript ulong data type.

URIError

此 API 支持产品基础结构,不能在代码中直接使用。

获取一个对 ErrorConstructor 对象的引用。Gets a reference to an ErrorConstructor object. 该对象初始化为 URIErrorThe object is initialized as a URIError.

ushort

此 API 支持产品基础结构,不能在代码中直接使用。

获取与 JScript ushort 数据类型相对应的托管类型。Gets the managed type that corresponds to the JScript ushort data type.

VBArray

此 API 支持产品基础结构,不能在代码中直接使用。

获取一个对 VBArrayConstructor 对象的引用。Gets a reference to a VBArrayConstructor object.

void

此 API 支持产品基础结构,不能在代码中直接使用。

获取与未返回值的函数的返回值对应的托管类型。Gets the managed type that corresponds to the return value of a function that does not return a value.

方法

CollectGarbage()

此 API 支持产品基础结构,不能在代码中直接使用。

调用垃圾回收器。Calls the garbage collector.

decodeURI(Object)

此 API 支持产品基础结构,不能在代码中直接使用。

对指定的统一资源标识符 (URI) 进行解码(考虑保留字符)。Decodes the specified Uniform Resource Identifier (URI), accounting for reserved characters.

decodeURIComponent(Object)

此 API 支持产品基础结构,不能在代码中直接使用。

对指定的统一资源标识符 (URI) 进行解码。Decodes the specified Uniform Resource Identifier (URI).

encodeURI(Object)

此 API 支持产品基础结构,不能在代码中直接使用。

对指定的统一资源标识符 (URI) 进行编码(考虑保留字符)。Encodes the specified Uniform Resource Identifier (URI), accounting for reserved characters.

encodeURIComponent(Object)

此 API 支持产品基础结构,不能在代码中直接使用。

对指定的统一资源标识符 (URI) 进行编码。Encodes the specified Uniform Resource Identifier (URI).

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
escape(Object)

此 API 支持产品基础结构,不能在代码中直接使用。

转换指定的字符串,以使用 % 字符对保留字符(@、*、_、+、-、. 和 /)进行转义,并以 Unicode 表示法表示它们。Converts the specified string to use the % character to escape reserved characters (@, *, _, +, -, ., /) and express them in Unicode notation.

eval(Object)

此 API 支持产品基础结构,不能在代码中直接使用。

在所有情况下均引发 IllegalEval 异常。Throws an IllegalEval exception in all cases.

GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetObject(Object, Object)

此 API 支持产品基础结构,不能在代码中直接使用。

使用名字对象或 ProgID 通过非托管对象创建托管对象。Creates a managed object from an unmanaged object by using either the moniker or the ProgID.

GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
isFinite(Double)

此 API 支持产品基础结构,不能在代码中直接使用。

确定指定的数字是否表示无穷大。Determines whether the specified number represents infinity.

isNaN(Object)

此 API 支持产品基础结构,不能在代码中直接使用。

确定指定的数字是否可以转换为 JScript 数字。Determines whether the specified number can be converted to a JScript number.

MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
parseFloat(Object)

此 API 支持产品基础结构,不能在代码中直接使用。

将指定的字符串转换为其 Double 等效项。Converts the specified string to its Double equivalent.

parseInt(Object, Object)

此 API 支持产品基础结构,不能在代码中直接使用。

使用指定的基数将指定的字符串转换为其 Double 等效项。Converts the specified string to its Double equivalent, using the specified base.

ScriptEngine()

此 API 支持产品基础结构,不能在代码中直接使用。

获取脚本引擎的名称。Gets the name of the scripting engine.

ScriptEngineBuildVersion()

此 API 支持产品基础结构,不能在代码中直接使用。

获取脚本引擎的生成号。Gets the build number of the scripting engine.

ScriptEngineMajorVersion()

此 API 支持产品基础结构,不能在代码中直接使用。

获取脚本引擎的主要版本号。Gets the major version number of the scripting engine.

ScriptEngineMinorVersion()

此 API 支持产品基础结构,不能在代码中直接使用。

获取脚本引擎的次要版本号。Gets the minor version number of the scripting engine.

ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)
unescape(Object)

此 API 支持产品基础结构,不能在代码中直接使用。

将指定字符串中 % 的已转义字符(@、*、_、+、-、. 和 /)转换成其原始格式。Converts % escaped characters (@, *, _, +, -, ., /) in the specified string to their original form. 已转义字符以 Unicode 表示法表示。The escaped characters are expressed in Unicode notation.

适用于

另请参阅