Running scripts in an ajax-loaded page fragment

前端 未结 4 1828
谎友^
谎友^ 2021-01-23 06:40

My web app dynamically loads sections of its UI with jquery.ajax. The new UI sections come with script though. I\'m loading them as such:

Use...



        
4条回答
  •  半阙折子戏
    2021-01-23 07:22

    Are you familiar with the live() function? Might be what you're looking for here.

    http://api.jquery.com/live/

提交回复
热议问题