3

Winjs.UI.ListView がデータをフェッチしている間、ページの上部に不確定な進行状況バーを表示する方法。Winjs の進行状況を表示する組み込み機能はありますか?

4

1 に答える 1

1

daya を取得するメソッドがgetData().

function getData(){
var progress = document.createElement("progress");
document.getElementById("someDiv").appendChild(progress); //we have created and appended an undetermined progress bar.
//do the data fetching, and, when it's over and ítems have been asigned to the ListView remove the progress element from the div.
}

それ以外の場合、HTML では:

<progress></progress>
于 2012-12-09T15:11:22.400 に答える