다음을 통해 공유


QueryCollection.hasClass method

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 WinJS version

WinJS 1.0

Namespace

WinJS.Utilities

See also

QueryCollection