hopestar86
V2EX  ›  PHP

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

  •  
  •   hopestar86 · Aug 25, 2012 · 4106 views
    This topic created in 5043 days ago, the information mentioned may be changed or developed.
    如:有20条数据需要向demo.php页面提交,我想要用点击提交后逐条处理,
    即一条complete完成后在进行下一条处理,请教这个函数如何写?

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

    写了个setTimeout版本的,ajax的话修改func里的步骤就好,代码比较丑没做封装,能明白意思就好。
    binux
        4
    binux  
       Aug 25, 2012
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   961 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 21:38 · PVG 05:38 · LAX 14:38 · JFK 17:38
    ♥ Do have faith in what you're doing.