欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

jQuery EasyUI API 中文文檔 - ProgressBar 進(jìn)度條

 更新時(shí)間:2011年09月29日 01:08:56   作者:  
jQuery EasyUI API 中文文檔 - ProgressBar 進(jìn)度條,使用jQuery EasyUI的朋友可以參考下。
用$.fn.progressbar.defaults重寫(xiě)defaults。
依賴(lài)
none
用法示例
創(chuàng)建ProgressBar
ProgressBar能夠從html標(biāo)記創(chuàng)建或者編程創(chuàng)建。從標(biāo)記創(chuàng)建更容易些,把 'easyui-progressbar' 類(lèi)加入到<div/>標(biāo)記。
復(fù)制代碼 代碼如下:
<div id="p" class="easyui-progressbar" style="width:400px;"></div>


獲取或者設(shè)置值
我們獲取當(dāng)前值并且給這個(gè)組件設(shè)置一個(gè)新值。
復(fù)制代碼 代碼如下:

var value = $('#p').progressbar('getValue');
if (value < 100){
value += Math.floor(Math.random() * 10);
$('#p').progressbar('setValue', value);
}

特性

名稱(chēng)

類(lèi)型

說(shuō)明

默認(rèn)值

width

string

設(shè)置progressbar的寬度。

auto

value

number

百分比值。

0

text

string

顯示在組件上的文字的模板。

{value}%

事件

名稱(chēng)

參數(shù)

說(shuō)明

onChange

newValue,oldValue

當(dāng)值改變的時(shí)候觸發(fā)。

方法

名稱(chēng)

參數(shù)

說(shuō)明

options

none

返回options對(duì)象。

resize

width

調(diào)整組件尺寸。

getValue

none

返回當(dāng)前的進(jìn)度值。

setValue

value

設(shè)置一個(gè)新的進(jìn)度值。

相關(guān)文章

最新評(píng)論