2014-06-20 20 views

回答

0

如果實現的jQuery,你可以做這樣的事情:

jQuery(document).ready(function($) { 
     $(".click").click(function() { 
      window.document.location = $(this).attr("href"); 
     }); 
}); 

編輯

假設你的標籤看起來像這樣

<tr class = "click" href = "<%= something from Perl %>"> 
+0

完美,感謝 – user3752957

+3

碼味 - 使用' this.href'而不是'$(this).attr('href')' – Alnitak

相關問題