yyfearth

@Livid 大大能否解决一下重发的问题呢,好像已经是老问题了呢

  •  
  •   yyfearth · Apr 23, 2012 · 7612 views
    This topic created in 5213 days ago, the information mentioned may be changed or developed.
    有时候网速问题或者手快,就不小心回点击两下回复,我之前做 ajax 回复很大原因就是为了避免这个问题
    是不是可以考虑一下点击瞬间把 button disable 掉,然后设置一个timeout来re-enable,这样也不会因为报错或者其他原因而一直 disabled。这个timeout只有设置几秒就足够抵挡重复回复,而且不会有其他负面影响。
    2 replies    1970-01-01 08:00:00 +08:00
    Livid
        1
    Livid  
    MOD
    PRO
       Apr 23, 2012   ❤️ 2
    计划中打算实现 member.last_topic_md5 和 member.last_reply_md5 保护。
    yyfearth
        2
    yyfearth  
    OP
       Apr 23, 2012
    @Livid 不过觉得用js实现比较简单直接,当然效果上没办法彻底解决这个问题。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2914 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 08:31 · PVG 16:31 · LAX 01:31 · JFK 04:31
    ♥ Do have faith in what you're doing.