V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
hopestar86
V2EX  ›  PHP

求教jquery ajax逐条处理数据怎么写?

  •  
  •   hopestar86 · 2012-08-25 02:34:25 +08:00 · 3231 次点击
    这是一个创建于 4256 天前的主题,其中的信息可能已经有所发展或是发生改变。
    如:有20条数据需要向demo.php页面提交,我想要用点击提交后逐条处理,
    即一条complete完成后在进行下一条处理,请教这个函数如何写?

    还有jquery中用$.ajax有个timeout的超时参数,我想知道这个超时信息如何返馈给用户的?
    是通过error后台的function吗?
    4 条回复    1970-01-01 08:00:00 +08:00
    aveline
        1
    aveline  
       2012-08-25 03:02:58 +08:00
    试试 Jscex 或者 async?
    imcotton
        2
    imcotton  
       2012-08-25 04:32:23 +08:00
    jQuery pipe in CoffeeScript
    http://gist.github.com/3455299
    supersheep
        3
    supersheep  
       2012-08-25 23:19:36 +08:00
    https://gist.github.com/3467003

    写了个setTimeout版本的,ajax的话修改func里的步骤就好,代码比较丑没做封装,能明白意思就好。
    binux
        4
    binux  
       2012-08-25 23:25:15 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1021 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 19:22 · PVG 03:22 · LAX 12:22 · JFK 15:22
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.