共用方式為


QueryCollection.query method

Executes a query selector on all the elements in the collection and aggregates the result into a QueryCollection.

Syntax

var queryCollection = queryCollection.query(query);

Parameters

  • query
    Type: ****

    The query selector string.

Return value

Type: QueryCollection

A QueryCollection object containing the aggregate results of executing the query on all the elements in the collection.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.Utilities

See also

QueryCollection