开发者

Adding jQuery to XMLHttp

开发者 https://www.devze.com 2022-12-13 03:23 出处:网络
How c开发者_运维知识库an I add jQuery click events to a page which was loaded with XMLHttpRequest?Use the $.live() method to handle items that will appear later in the pages lifetime.

How c开发者_运维知识库an I add jQuery click events to a page which was loaded with XMLHttpRequest?


Use the $.live() method to handle items that will appear later in the pages lifetime.

  $("a").live("click", function(e) {
    e.preventDefault(); // disables all links, even links added via AJAX
  });
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号