【发布时间】:2023-03-27 03:41:01
【问题描述】:
谁能告诉我这里的问题出在哪里,我想当我点击#automatic 开始以 3 秒延迟打开新窗口时
$('#automatic').click(function(){
$('.autosend').each(function() {
//window.open( $(this).attr('href') );
var openwindow = window.open( $(this).attr('href') );
setTimeout(openwindow,3000);
});
});
【问题讨论】:
-
我猜问题出在现代浏览器中内置的“弹出窗口拦截器”,以确保不可能出现这种烦人的废话,
标签: javascript jquery each settimeout