更新之后用这么写
swal({ title: "这里写标题", text: "这里放内容", icon: "warning", // 这里放图标的类型(success,warning,info,error) buttons: { cancel: { text: "容我三思", visible: true, value: false }, confirm: { text: "我就是要删除" } } }).then(function (isConfirm) { if (isConfirm){ swal("你死定了", {button: "确认"}); } 8.2.3 Toastr通知参考:https://codeseven.github.io/toastr/
toastr["success"]("你已经成功被绿!") 8.2.4 jQueryLazyload懒加载示例:
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta http-equiv="x-ua-compatible" content="IE=edge"> <meta content="width=device-width, initial-scale=1"> <title>懒加载示例</title> </head> <body> <div> <div><img src="http://www.likecs.com/img/0.jpg" alt="" data-original="img/5.jpg"></div> ... <div><img src="http://www.likecs.com/img/0.jpg" alt="" data-original="img/6.jpg"></div> </div> <script src="http://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script> <script src="http://www.likecs.com/jquery.lazyload.min.js"></script> <script> $("img.lazy").lazyload({ effect: "fadeIn", event: "click" }) </script> </body> </html> 8.2.5 模板一个不错的管理后台模板
Metronic:
9, Bootstrap实例精选封面图