addAlert () {
this.refs.container.success(
"Welcome welcome welcome!!",
"You are now home my friend. Welcome home my friend.", {
timeOut: 3000,
extendedTimeOut: 11000,
closeButton:true
});
// $("#toast-container > div").hide(0).delay(5000).hide(0);
setTimeout($('.searchBlock').fadeIn('slow'), 3000);
//window.open("http://youtu.be/3SR75k7Oggg");
}
无法使用超时隐藏元素 获取错误:VM83256:1未捕获的SyntaxError:意外的标识符
答案 0 :(得分:2)
可能的更正是添加匿名函数,更改以下行:
setTimeout(function(){
$('.searchBlock').fadeIn('slow');
},3000);