【发布时间】:2013-05-09 03:07:01
【问题描述】:
我是 JS 新手,不知道如何在我的页面上进行这项工作。下面是我所拥有的。我该如何制作这个警报显示?
我正确添加了源,但不确定如何呈现警报。
<!doctype html>
<html>
<head>
<title>Toast</title>
<link href="toastr.css" rel="stylesheet"/>
<script src="toastr.js"></script>
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<script>
$(document).ready(function() {
//toastr.info('Are you the 6 fingered man?')
Command: toastr[success](" ", "Settings Saved!")
toastr.options: {
"debug": false,
"positionClass": "toast-top-right",
"onclick": null,
"fadeIn": 300,
"fadeOut": 1000,
"timeOut": 5000,
"extendedTimeOut": 1000
}
});
</script>
</head>
<body>
</body>
</html>
【问题讨论】:
-
我希望你已经开始使用documentation
-
我做了,但我不清楚如何调用警报?我是否使用点击事件?我也是 JS 新手。
-
toastr 前需要删除
Command:
标签: javascript jquery toastr