Are dynamically inserted [removed] tags meant to work?

后端 未结 3 1625
半阙折子戏
半阙折子戏 2020-11-30 14:25

I have some code where a

3条回答
  •  死守一世寂寞
    2020-11-30 15:16

    Dynamically inserted client-side or server-side?

    Server-side it'll work - assuming that the server-side call isn't an AJAX postback (Cause then in reality the actual dynamic insertion is still client-side).

    Client-side it won't (you can't simply inject java-script into a page after it's already loaded and expect it to execute). You'll have to actually explicitly execute the JavaScript in that case or use a framework like jQuery that'll do that for you.

提交回复
热议问题