![](/img/trans.png)
[英]I want to store data samples from an excel sheet into an array in javascript
[英]I want to use dynamic progressbar when the data fetch from excel sheet
我想插入進度條(bootstrap)。從Excel工作表中提取數據到下拉列表框大約需要5秒鍾。直到我希望進度條填滿網頁。
I guess you are looking for some preloader shown on your page when an event gets triggered..I have written a piece code where you can achieve that..
視圖:
<ul id="prloader" style="display:none">
<li>
<img src="~/images/loader.gif" /></li>
<li id="msg">Processing. Please Wait...</li>
</ul>
jQuery(如果您使用ajax調用):
$('****').change(function(){ //You can have any other event based on your requirement..
$('#prloader').show();
$.ajax({
url:"../../Controller/Action",
success:function(response){
//Have your logic here
$('#prloader').hide();
},
error:function(){
$('#prloader').hide();
}
});
});
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.