다음을 통해 공유


QueryCollection.listen method

Registers the listener for the specified event on all the elements in the collection.

Syntax

queryCollection.listen(eventType, listener, capture);

Parameters

  • eventType
    Type: string

    The name of the event.

  • listener
    Type: function

    The event handler function to be called when the event occurs.

  • capture
    Type: Boolean

    true if capture == true is to be passed to addEventListener; otherwise, false.

Return value

This method does not return a value.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.Utilities

See also

QueryCollection