window.setTimeout("removediv()",2000); 可以用来调用函数,或是直接写代码 function removediv() { alert('in'); $(".masks2").fadeIn(1000); }