jQuery:Flash消息 [英] jquery: Flash messages
本文介绍了jQuery:Flash消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用jQuery,如何以一种简单的方式在页面顶部显示即显消息?是否有内置的东西或插件,或者足以轻松自己动手做?
With jQuery, how can I display a flash message at the top of the page in an easy way? Is there something built-in, or a plugin, or is it easy enough to do it yourself?
我的意思是在ajax发布成功之后,我想以一种不引人注目的方式说嘿,它很好".
What I mean is like after a successful ajax post I would like to just say "hey, it went good" in a non-obtrusive way.
推荐答案
我会查看可以使用jQuery咆哮样式插件,如果您正在寻找可以快速实施的方法:)
I would check out the jQuery growl style plugins available if you're looking for something quick to implement :)
.ajaxSuccess()
是运行代码或发生错误的好地方 .ajaxError()
,这些是
查看全文