0
下面的代碼位因某些原因無法工作,它不喜歡的setTimeout的一部分,而不是唯一的工作版本我能做的就是不延遲...爲什麼我的每個類使用的jQuery代碼片段不支持setTimeout?
jQuery(".divhere").hide();
if(jQuery('.divhere').length >= 1){
jQuery(".divhere").each(function() {
setTimeout(function(el) {
jQuery(this).slideDown("slow");
jQuery(this).show();
}, 1000);
});
}
只有一個工作是:
jQuery(".divhere").hide();
if(jQuery('.divhere').length >= 1){
jQuery(".divhere").each(function() {
jQuery(this).slideDown("slow");
jQuery(this).show();
});
}
裏面的setTimeout的處理程序'this'指窗口對象 –