我使用的是jquerymsgbox的jQuery消息框插件。我想要做的是显示一个消息框,并使用timeOut = 30sec自动关闭它。
$.msgBox({
title: "Ooops",
content: "Ohh dear! You broke it!!!",
type: "error",
showButtons: false,
opacity: 0.9,
timeOut:30000
});发布的代码不起作用。我只是个初学者,不知道该做什么。
发布于 2013-02-07 13:02:31
你漏掉了什么..。将此添加到timeout:30000的正上方
autoClose:true因此,您需要:
$.msgBox({
title: "Ooops",
content: "Ohh dear! You broke it!!!",
type: "error",
showButtons: false,
opacity: 0.9,
autoClose:true,
timeOut:30000});发布于 2013-02-07 13:02:57
$.msgBox({
title: "Ooops",
content: "Ohh dear! You broke it!!!",
type: "error",
showButtons: false,
opacity: 0.9,
autoClose:true
});使用autoClose : true
https://stackoverflow.com/questions/14743875
复制相似问题