ready function

WinJS.Utilities.ready function

[This documentation is preliminary and is subject to change.]

Applies to: Metro style apps only

Ensures that the specified function executes only after the DOMContentLoaded event has fired for the current page.

Syntax

WinJS.Utilities.ready(callback, async).done( /* Your success and error handlers */ );

Parameters

callback

Type: Function

A function that executes after DOMContentLoaded has occurred.

async

Type:

If true, the callback should be executed asynchronously.

Return value

Type: Object

A promise that completes after DOMContentLoaded has occurred.

Requirements

Minimum supported client

Windows 8 Consumer Preview

Minimum supported server

Windows Server 8 Beta

Namespace

WinJS.Utilities

Library

Base.js

 

 

Build date: 2/10/2012

Ajouts de la communauté

AJOUTER
Afficher:
© 2017 Microsoft