如何在新标签中打开它?
array_at_range
这是脚本
<tr href=".....">
答案 0 :(得分:0)
window.open($(this).attr('href'), '_blank');
答案 1 :(得分:0)
答案 2 :(得分:0)
添加第二个参数
.attr('href','_blank')
答案 3 :(得分:0)
$(document).ready(function(){
$('table tr').click(function(){
var win = window.open('http://google.com/', '_blank');
if (win) {
// Browser has allowed it to be opened
win.focus();
} else {
// Broswer has blocked it
alert('Please allow popups for this site');
}
})