3个简单步骤
对于其他API调用,看到演示。
1 2 3 4 | <link href="toastr.css" rel="stylesheet"/><script src="toastr.js"></script>//显示一个信息没有标题toastr.info('Are you the 6 fingered man?') |
其他选项
/显示一个警告,没有标题
1 | toastr.warning('My name is Inigo Montoya. You killed my father, prepare to die!') |
//显示一个成功,标题
1 | toastr.success('Have fun storming the castle!', 'Miracle Max Says') |
/显示错误标题
toastr.error('I do not think that word means what you think it means.', 'Inconceivable!')//清除当前的列表
1 | toastr.clear() |
特别申明:
本站所有资源都是由网友投稿发布,或转载各大下载站,请自行检测软件的完整性!
本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!
如有侵权请联系我们删除下架,联系方式:lei1294551502@163.com