jGrowl:如何将我的界面一次限制为一条消息? [英] jGrowl: How can I limit my interface to one message at a time?

查看:112
本文介绍了jGrowl:如何将我的界面一次限制为一条消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

鉴于:我在页面加载时加载了消息队列.

Given: I load a queue of messages at page load.

使用jGrowl,我如何以点滴状的方式一次显示一条消息?

With jGrowl, how can I display each message, one message at a time, in a drip-like fashion?

推荐答案

几个月前,我需要为一个项目执行此操作.如果您使用最新jGrowl(在撰写本文时为1.2.0)中提供的池化功能,则只需编写以下内容即可:

I needed to do this for a project, a few months ago. If you use the pooling feature, available in the latest jGrowl (1.2.0 as of this writing), you can simply write:

$.jGrowl.defaults.pool = 1;

这样,您可以同时加载所有这些文件,jGrowl会一次只显示一个.消息关闭时,jGrowl将自动显示下一条消息.

That way, you can load all of them at the same time, jGrowl will take care of only showing one at a time. When a message closes, jGrowl will automatically display the next one.

我希望这就是你想要的.

I hope this is what you wanted.

这篇关于jGrowl:如何将我的界面一次限制为一条消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆