页面加载后出现进度条

发布于 2024-08-05 01:41:20 字数 406 浏览 1 评论 0原文

我试图通过 jQuery 显示文件上传的进度。文件上传工作正常。但文件上传后会出现进度条。

即进度条显示为 100%。但是当我“警报”时,我可以看到进度条。

知道为什么下面的示例没有显示进度条吗?

<body>
    <div id="progressbar"></div>
    <div id="status"></div>
</body>
    <script>
              $("#progressbar").progressbar({ value: 0 });
               updateStatus();
        </script>
</html>

I am trying to show the progress of file upload thru jQuery. File upload works fine. But progress bar appears after the file is uploaded.

That is progress bar shown in 100%. But when I 'alert' I can see the progress bar.

Any idea why progress bar is not shown with below sample ?

<body>
    <div id="progressbar"></div>
    <div id="status"></div>
</body>
    <script>
              $("#progressbar").progressbar({ value: 0 });
               updateStatus();
        </script>
</html>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文