Class

Class

new Class(abstractopt, methodopt) → {Class}

Source:
Author:
  • TechQuery

类式继承抽象类

Parameters:
Name Type Attributes Default Description
abstract object <optional>
Class

Constructor of Abstract Class

method Array.<string> <optional>

Names of Abstract Methods

Returns:
Type
Class

Methods

(static) extend(sub, Staticnullable, protoopt) → {function}

Source:

继承出一个子类

Parameters:
Name Type Attributes Description
sub function

Constructor of Sub Class

Static object <nullable>

Static properties

proto object <optional>

Instance properties

Returns:

The Sub Class

Type
function

setPrivate(key, valueopt, configopt) → {*}

Source:

设置私有成员

Parameters:
Name Type Attributes Description
key string | object

Key or Key-Value

value * <optional>
config object <optional>

More config

Returns:

Value while set one or
This object when set Key-Value

Type
*

setPublic(key, Get_Setopt, configopt) → {object}

Source:

设置公开成员

Parameters:
Name Type Attributes Description
key string | object

Key or Key-Value

Get_Set object <optional>

Getter & Setter

config object <optional>

More config

Returns:

Get_Set while set one or
This object when set Key-Value

Type
object