toastr - jQuery 的 Toast 插件


MIT
跨平台
JavaScript

软件简介

toastr 是一个实现了类似 Android 的 Toast 提示的 jQuery 插件。

示例代码:

// Display a warning toast, with no title
toastr.warning('My name is Inigo Montoya. You killed my father, prepare to die!')

// Display a success toast, with a title
toastr.success('Have fun storming the castle!', 'Miracle Max Says')

// Display an error toast, with a title
toastr.error('I do not think that word means what you think it means.', 'Inconceivable!')

// Clears the current list of toasts
toastr.clear()