EN
Dieser Inhalt ist in Ihrer Sprache leider nicht verfügbar. Im Folgenden finden Sie die englische Version.

QueryCollection.hasClass method

Applies to Windows and Windows Phone

Determines whether the specified class exists on the first element of the collection.

Syntax


var boolean = queryCollection.hasClass(name);

Parameters

name

Type: string

The name of the class.

Return value

Type: Boolean

true if the element has the specified class; otherwise, false.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.Utilities

Library

Base.js

See also

QueryCollection

 

 

Anzeigen:
© 2014 Microsoft