javascript如何使用通知onclick在chrome中打开已打开的选项卡(旧选项卡)? 1 周,2 日 Questions & Answers 43 我使用单击时通知打开打开的选项卡,但没有成功。在我的例子中,当我单击一个通知时,它会打开一个新选项卡,我想打开一个已打开的旧选项卡
# 1 楼答案 这在javascript中是可能的 //You can open new tab like this var openedTab = window.open('Your URL', '_blank'); //You can return that tab like this openedTab.focus();
# 1 楼答案
这在javascript中是可能的