【发布时间】:2011-10-16 03:58:41
【问题描述】:
我试图为 div 设置动画,并尝试使用在其他地方检索到的一些值,我知道该值是正确的,因为我已经打印了输出......所以我想知道为什么它不能正常工作?
animateBar(percentage.toFixed(2)+'%');
[ . . . ]
function animateBar(percentage)
{
$('#innerBox').animate({width: percentage}, 3000);
}
【问题讨论】:
标签: javascript jquery jquery-animate