V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
dapengzhao
V2EX  ›  问与答

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

  •  
  •   dapengzhao · Mar 14, 2018 · 1332 views
    This topic created in 2972 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   ·   1113 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 23:59 · PVG 07:59 · LAX 16:59 · JFK 19:59
    ♥ Do have faith in what you're doing.