hopestar86
V2EX  ›  PHP

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

  •  
  •   hopestar86 · Aug 25, 2012 · 4401 views
    This topic created in 5197 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
    aveline
    Aug 25, 2012
    1
    试试 Jscex 或者 async?
    imcotton
    imcotton
    Aug 25, 2012
    2
    jQuery pipe in CoffeeScript
    http://gist.github.com/3455299
    supersheep
    supersheep
    Aug 25, 2012
    3
    https://gist.github.com/3467003

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