您好我有一个程序正在搜索与两个所选文件夹的整个目录不同且相同的文件。但我的问题是,当两个目录有一个大文件。用户界面看起来好像挂了。为了防止它,我使用进度条,以便用户知道搜索所有目录需要多长时间。但问题是进度条在搜索已经完成时执行。当用户单击某个按钮时,如何让进度条启动?提前谢谢。
答案 0 :(得分:0)
http://jsfiddle.net/sylouuu/V7a3Y/
- Your progress bar will start if button is clicked and stop this when search is completed
- In this example you can set duration of progress bar so you know what is your searching algorithm max time you can set same here. Also you can change maxwidth and can remove percentage