EN
このコンテンツは設定された言語で表示できません。英語版のページが表示されます。

WinJS Namespace

Applies to Windows and Windows Phone

The WinJS namespace provides special Windows Library for JavaScript functionality, including Promise and xhr.

The WinJS namespace has these types of members:

Objects

ObjectDescription

ErrorFromName object

An error object.

Promise object

Provides a mechanism to schedule work to be done on a value that has not yet been computed. It is an abstraction for managing interactions with asynchronous APIs.

For more information about asynchronous programming, see Asynchronous programming. For more information about promises in JavaScript, see Asynchronous programming in JavaScript.

 

Properties

PropertyDescription

validation property

Can be set to show the results of a validation process.

 

Functions

FunctionDescription

log function

Writes output to the JavaScript console in Visual Studio. You can provide an implementation of this method yourself, or use WinJS.Utilities.startLog to log to the JavaScript console.

strictProcessing function

This method has been deprecated. Strict processing is always on; you don't have to call this method to turn it on.

xhr function

Wraps calls to XMLHttpRequest in a promise.

 

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

Library

Base.js

See also

Quickstart: Adding WinJS controls

 

 

表示:
© 2014 Microsoft. All rights reserved.