我的主页上有一个欢迎的弹出窗口。在javascript中设置延迟时间
我有此Javascript
<script type="text/javascript">
$(document).ready(function() {
$("#div-welcome").dialog({
width: 'auto',
height: 'auto',
modal: true
});
});
</script>
如何设置3秒的延迟?我尝试了setTime函数,但没有奏效。也许我把它放在了错误的地方。 谢谢! AVersa
类似的问题,http://stackoverflow.com/questions/17305879/load-jquery-modal-dialog-after-a-delay –