EN
Ce contenu n’est pas disponible dans votre langue. Voici la version anglaise.

WinJS.UI.scopedSelect function

Applies to Windows and Windows Phone

Walks the DOM tree from the given element to the root of the document. Whenever a selector scope is encountered, this method performs a lookup within that scope for the specified selector string. The first matching element is returned.

Syntax


var htmlElement = WinJS.UI.scopedSelect(selector, element);

Parameters

selector

Type: String

The selector string.

element

Type: HTMLElement

The element to begin walking to the root of the document from.

Return value

Type: HTMLElement

The target element, if found.

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.UI

Library

Winjs.js

 

 

Afficher:
© 2015 Microsoft