它以我拥有此代码的方式返回未定义的 var "el"
$('.element').each(function(){
var el = $(this);
setTimeout(function(el) {
el.css({ marginTop: -100 });
}, 550);
$(window).resize(function(el) {
setTimeout(function(el) {
el.css({ marginTop: -100 }); //this is where el is undefined
}, 550);
})
});
知道我在做什么错吗?