dapengzhao
V2EX  ›  问与答

关于 jquery ajax 无法定位 for 循环中的标签问题

  •  
  •   dapengzhao · Mar 14, 2018 · 1369 views
    This topic created in 2989 days ago, the information mentioned may be changed or developed.

    {% for r in replay %}

    {% endfor %}

    $('#huifu').click(function () {
                alert('aaaa')
            })
    

    这是精简后的代码,问题就是点页面上的回复的时候,没有反应。求大佬告知。

    dapengzhao
        1
    dapengzhao  
    OP
       Mar 14, 2018
    for 循环里面是这样的<a id="huifu" style="height: 23px;width: 33px;position: absolute;left: 740px;top: 25px;">回复</a>
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1002 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 22:19 · PVG 06:19 · LAX 15:19 · JFK 18:19
    ♥ Do have faith in what you're doing.