首页 > Web开发 > 详细

在sweetalert中 加入html代码

时间:2018-04-25 12:02:40      阅读:780      评论:0      收藏:0      [点我收藏+]
$(".demo_5 button").click(function() {
swal({
title: "Good!",
text: ‘自定义<span style="color:red">图片</span>、<a href="#">HTML内容</a>。<br/>5秒后自动关闭。‘,
imageUrl: "images/thumbs-up.jpg",
html: true,
timer: 5000,
showConfirmButton: false
});
});

在sweetalert中 加入html代码

原文:https://www.cnblogs.com/HwChinchilla/p/8942092.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!