一個新的選項卡下面的打字稿代碼將在當前瀏覽器選項卡常開如何打開與router.navigate
navigate($data: menuItem, $event: JQueryEventObject) {
//...
let a = $event.currentTarget as HTMLAnchorElement;
router.navigate(a.href);
}
我如何在一個新的標籤開放router.navigate? (即$ event.ctrlKey爲true時)
HTML鏈接做現在,我只需使用: '如果($ event.ctrlKey){window.open(URL); }' – Danielle