다음을 통해 공유


QueryCollection.id method

Looks up an element by ID and wraps the result in a QueryCollection.

Syntax

var queryCollection = queryCollection.id(id);

Parameters

  • id
    Type: String

    The ID of the element.

Return value

Type: QueryCollection

A QueryCollection that contains the element, if it is found.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.Utilities

See also

QueryCollection