progress栏没有显示springmvc中的确切值

irtuqstp  于 2021-07-16  发布在  Java
关注(0)|答案(0)|浏览(154)
<script type="text/javascript">
            $(function() {
                  $('uploadform').ajaxForm({   //my jsp form name
                    beforeSend: function() {
                     console.log("entered into before send");  
                    },
                    uploadProgress: function(event, position, total, percentComplete) {
                       console.log(percentComplete);
                    },
                    complete: function(xhr) {
                        status.html(xhr.responseText);
                    }
                });

我对发展很陌生。我已经将上面的代码包含到我的jsp页面中。在我的spring mvc控制器类方法中,为文件数据创建一个唯一的id,然后使用缓冲读取器读取所有数据。通过使用多线程,所有数据都将加载到数据库中。当我执行上述代码时,它只显示两个百分比。谁能帮我一下吗。

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题