共用方式為


WinJS.UI.Fragments Namespace

Provides functions to load HTML content programmatically.

The WinJS.UI.Fragments namespace has these types of members:

  • Functions

Functions

Function Description

cache function

Starts loading the fragment at the specified location. The returned promise completes when the fragment is ready to be copied.

clearCache function

Removes any cached info about the specified fragment. This method doesn't unload any scripts or styles that are referenced by the fragment.

render function

Loads the contents of the specified URI into the specified element.

renderCopy function

Copies the contents of the specified URI into the specified element.

 

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.Fragments

See also

Samples

Loading HTML fragments sample (Windows)