[英]Why does chrome allow window.open() to work when executed in the console but not in the code file itself?
瀏覽器跟蹤瀏覽器事件線程的當前調度是由直接的用戶操作(例如在控制台上輸入命令或單擊鏈接)啟動的。 僅當已采取方向操作時,才能打開窗口或選項卡。
我最近注意到,Firefox響應用戶的操作允許打開多個窗口,Chrome將其限制為一個窗口。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.