function progress(){ $('.div5 .progress-bar').animate({width:'+=30px'}); } $('.test').click(function(){ $('.div5').show(); int=setInterval('progress()',1000); }); 这个progress-bar元素宽度每秒增加30px,当宽度到达某个数值就清除这个定时器,如何动态获取这个progress-bar的宽度呢
添加回答
举报
0/150
提交
取消