Winjs.UI.ListView提取数据时,如何在页面顶部显示不确定的进度条。是否有任何内置功能可以显示Winjs的进度?
最佳答案
假设您获取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>
关于windows-8 - 加载Winjs.ui.listview时在页面顶部显示进度条,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/13788188/