jQuery animate() 显示动画进度的百分比
使用以下代码片段: http://jsfiddle.net/sylouuu/V7a3Y/2/ 我想在动画的 #log 中显示从 0% 到 100% 的进度百分比,通过回调很容易达到 100%...
可以这样做吗?
问候
With that following snippet: http://jsfiddle.net/sylouuu/V7a3Y/2/
I would like to show the % progress in #log of the animation from 0% to 100%, the 100% is easy with the callback...
Is it possible to do that?
Regards
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
jQuery 动画进度回调在 1.8 中引入:
The jQuery animate progress callback was introduced in 1.8:
我相信您可以通过使用步骤功能来做到这一点
希望这会有所帮助。
I believe you can do that by using the step function
Hope this helps.