jQuery EasyUI ProgressBar進(jìn)度條組件
ProgressBar(進(jìn)度條)組件,這個(gè)還是挺好玩的,我們?cè)谧约鹤鳇c(diǎn)什么的時(shí)候經(jīng)常能用到,比如上傳下載文件、導(dǎo)入導(dǎo)出文檔啊、載入網(wǎng)頁(yè)等等。
應(yīng)用場(chǎng)景很多,使用起來(lái)還很簡(jiǎn)單。
示例:
<!DOCTYPE html> <html> <head> <title>jQuery Easy UI</title> <meta charset="UTF-8" /> <script type="text/javascript" src="easyui/jquery.min.js"></script> <script type="text/javascript" src="easyui/jquery.easyui.min.js"></script> <script type="text/javascript" src="easyui/locale/easyui-lang-zh_CN.js" ></script> <link rel="stylesheet" type="text/css" href="easyui/themes/bootstrap/easyui.css" rel="external nofollow" /> <link rel="stylesheet" type="text/css" href="easyui/themes/icon.css" rel="external nofollow" /> <script> $(function () { //$.fn.progressbar.defaults.value = 30; //想要修改進(jìn)度條的顏色去css文件中去修改 $('#box').progressbar({ width : 200, //設(shè)置進(jìn)度條寬度 默認(rèn)400 height : 15, //設(shè)置進(jìn)度條高度 默認(rèn)22 value : 0, //設(shè)置進(jìn)度條值 默認(rèn)0 text : '{value}%', //設(shè)置進(jìn)度條百分比模板 默認(rèn) {value}% //在value改變的時(shí)候觸發(fā) onChange : function (newValue, oldValue) { console.log('新:' + newValue + ',舊:' + oldValue); }, }); /* setTimeout(function () { $('#box').progressbar('setValue', 70); }, 1000); */ setInterval(function () { //getValue setValue 分別是返回當(dāng)前進(jìn)度值 和 設(shè)置一個(gè)進(jìn)度值 $('#box').progressbar('setValue', $('#box').progressbar('getValue') + 5); }, 1000); console.log($('#box').progressbar('options')); //$('#box').progressbar('resize', 80); 沒(méi)啥大用 }); </script> </head> <body style="margin:100px;"> <!-- <div class="easyui-progressbar" data-options="value:60" style="width:400px"></div> --> <div id="box" ></div> </body> </html>
執(zhí)行效果:
點(diǎn)擊下載源代碼:jQuery ProgressBar進(jìn)度條組件
以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。
- jQuery EasyUI API 中文文檔 - ProgressBar 進(jìn)度條
- Jquery Easyui進(jìn)度條組件Progress使用詳解(8)
- jquery 簡(jiǎn)單的進(jìn)度條實(shí)現(xiàn)代碼
- 6款新穎的jQuery和CSS3進(jìn)度條插件推薦
- 分享8款優(yōu)秀的 jQuery 加載動(dòng)畫(huà)和進(jìn)度條插件
- 基于HTML5 Ajax文件上傳進(jìn)度條如何實(shí)現(xiàn)(jquery版本)
- Javascript jquery css 寫的簡(jiǎn)單進(jìn)度條控件
- jQuery實(shí)現(xiàn)文件上傳進(jìn)度條特效
- Jquery進(jìn)度條插件 Progress Bar小問(wèn)題解決
- jQuery監(jiān)聽(tīng)文件上傳實(shí)現(xiàn)進(jìn)度條效果的方法
- jQuery簡(jiǎn)單實(shí)現(xiàn)提交數(shù)據(jù)出現(xiàn)loading進(jìn)度條的方法
- jquery-ui 進(jìn)度條功能示例【測(cè)試可用】
相關(guān)文章
在jquery中的ajax方法怎樣通過(guò)JSONP進(jìn)行遠(yuǎn)程調(diào)用
這一節(jié)主要演示下在JQUERY中的ajax方法怎樣通過(guò)JSONP進(jìn)行遠(yuǎn)程調(diào)用,需要的朋友可以參考下2014-04-04jquery實(shí)現(xiàn)不同大小瀏覽器使用不同的css樣式表的方法
這篇文章主要介紹了jquery實(shí)現(xiàn)不同大小瀏覽器使用不同的css樣式表的方法,需要的朋友可以參考下2014-04-04jQuery實(shí)現(xiàn)折疊、展開(kāi)的菜單組效果代碼
這篇文章主要介紹了jQuery實(shí)現(xiàn)折疊、展開(kāi)的菜單組效果代碼,涉及jQuery針對(duì)頁(yè)面元素屬性動(dòng)態(tài)操作的相關(guān)技巧,展開(kāi)折疊效果平滑自然,需要的朋友可以參考下2015-09-09JQuery+Ajax無(wú)刷新分頁(yè)的實(shí)例代碼
本篇文章主要是對(duì)JQuery+Ajax無(wú)刷新分頁(yè)的實(shí)例代碼進(jìn)行了介紹,需要的朋友可以過(guò)來(lái)參考下,希望對(duì)大家有所幫助2014-02-02