Html code:

<a href="holiday_pay" class="popup">Holiday pay</a>

 

JS code:

var link=$("a.popup");

links.click(function(event){

    event.preventDefault();

    window.open($(this).attr('href'));

});

 

event.preventDefault(); 用以阻止默认的单击事件行为.

相关文章:

  • 2021-07-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-05
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-04-29
  • 2021-07-20
  • 2022-12-23
相关资源
相似解决方案