我正在嘗試添加指向表格行的鏈接并在單擊時打開新選項卡。下面的解決方案有效,但我需要在新選項卡中打開頁面。Javascript:$(document).ready(function () { $('#orders-table tr').click(function () { var href = $(this).find("a").attr("href"); if (href) { window.location = href; } });});HTML:<tr href="/order?id=[ORDER_ID_LOCAL]" target="_blank">
HTML 表格行鏈接在新選項卡中打開
一只名叫tom的貓
2021-06-10 13:01:30