dsaxw4201 2014-03-12 12:54
浏览 53

异步请求ajax的结果

I have a file which makes a huge Excel data sheet with more than 10.000 lines. I load the file with $.ajax method of jQuery.

$('#excelExportForm').submit(function(){
    $.ajax({        
        type: "GET",
        url: "phpexcel/export_titles.php",             
        dataType: "html",
        async: true,            
        success: function(response){                    
            console.log(response); 
        }
    });
    return false;
});

After every line a calculate the actual process in percent and echo it out.

How can I get this echo to manipulate a progress bar?

The Output in my console is the following:

000111112222233333444445555566666777778888899999101010101011111111111212121212131313131314141414141515151515161616161617171717171818181818191919191920202020202121212121222222222223232323232424242424252525252526262626262727272727282828282829292929293030303030313131313132323232323333333333343434343435353535353636363636373737373738383838383939393939404040404041414141414242424242434343434344444444444545454545464646464647474747474848484848494949494950505050505151515151525252525253535353535454545454555555555556565656565757575757585858585859595959596060606060616161616162626262626363636363646464646465656565656666666666676767676768686868686969696969707070707071717171717272727272737373737374747474747575757575767676767677777777777878787878797979797980808080808181818181828282828283838383838484848484858585858586868686868787878787888888888889898989899090909090919191919192929292929393939393949494949495959595959696969696979797979798989898989999999999100100
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 软件工程用例图的建立(相关搜索:软件工程用例图|画图)
    • ¥15 如何在arcgis中导出拓扑关系表
    • ¥15 处理数据集文本挖掘代码
    • ¥15 matlab2017
    • ¥15 在vxWorks下TCP/IP编程,总是connect()报错,连接服务器失败: errno = 0x41
    • ¥15 AnolisOs7.9如何安装 Qt_5.14.2的运行库
    • ¥20 求:怎么实现qt与pcie通信
    • ¥50 前后端数据顺序不一致问题,如何解决?(相关搜索:数据结构)
    • ¥15 基于蒙特卡罗法的中介效应点估计代码
    • ¥15 罗技G293和UE5.3