JS弹力效果进度条 ElasticProgress
jopen
9年前
ElasticProgress 可以创建一个有弹力效果的进度条。
示例代码:
var progress=new ElasticProgress('.Upload', { // ... onClick:function(){ progress.open(); } });function theFunctionYouAreUsingToCheckProgress(){ // ... progress.setValue(value); }// with jQuery$(".Upload").ElasticProgress({ // ... onClick:function(){ $(this).ElasticProgress('open'); } });function theFunctionYouAreUsingToCheckProgress(){ // ... $(".Upload").ElasticProgress('setValue',value); }