derive function
Réduire la table des matières
Développer la table des matières

WinJS.Class.derive function

[This documentation is preliminary and is subject to change.]

Applies to: Metro style apps only

Creates a sub-class based on the supplied baseClass parameter, using prototypal inheritance.

Syntax

var object = WinJS.Class.derive(baseClass, constructor, instanceMembers, staticMembers);

Parameters

baseClass

Type: object

The class to inherit from.

constructor

Type: function

A constructor function that is used to instantiate this class.

instanceMembers

Type: object

The set of instance fields, properties, and methods to be made available on the class.

staticMembers

The set of static fields, properties, and methods to be made available on the class.

Return value

Type: Object

The newly-defined class.

Requirements

Minimum supported client

Windows 8 Consumer Preview

Minimum supported server

Windows Server 8 Beta

Namespace

WinJS.Class

Library

Base.js

 

 

Build date: 2/10/2012

Ajouts de la communauté

AJOUTER
Afficher:
© 2017 Microsoft