<script type="text/javascript">
$.growl({ title: "Growl", message: "The kitten is awake!", url: "/kittens" });
$.growl.error({ message: "The kitten is attacking!" });
$.growl.notice({ message: "The kitten is cute!" });
$.growl.warning({ message: "The kitten is ugly!" });
</script>
Advanced Options
Growl also supports some customization through the following options:
delayOnHover: while hovering over the alert, prevent it from being dismissed (true | false - default: true)
duration: the duration (in milliseconds) for which the alert is displayed (default: 3200)
fixed: whether the alert should be fixed rather than auto-dismissed (true | false - default: false)
location: the alert's position ('tl' | 'tr' | 'bl' | 'br' | 'tc' | 'bc' - default: 'tr')
请发表评论