Javascript 如何设计sweetAlert
我如何设计Javascript 如何设计sweetAlert,javascript,jquery,css,sweetalert,Javascript,Jquery,Css,Sweetalert,我如何设计AJAX响应SweetAlert中的数据以下是我的代码和示例图像,如有任何帮助,将不胜感激 您应该使用提供的css类来设置模式内容的样式。 请看这里的文档。此处提到了所有必需的课程。 例: 您应该使用提供的css类来设置模式内容的样式。 请看这里的文档。此处提到了所有必需的课程。 例: 尝试使用SweetAlert2 .done(function (data) { swal({ title: 'Thank you for your order',
AJAX
响应SweetAlert
中的数据以下是我的代码和示例图像,如有任何帮助,将不胜感激
您应该使用提供的
css
类来设置模式内容的样式。
请看这里的文档。此处提到了所有必需的课程。
例:
您应该使用提供的css
类来设置模式内容的样式。
请看这里的文档。此处提到了所有必需的课程。
例:
尝试使用SweetAlert2
.done(function (data) {
swal({
title: 'Thank you for your order',
type: 'success',
html: data
});
});
注意:SweetAlert回购协议似乎未得到维护。试试看。它与Sweetalert相同,但在模式中支持HTML,并提供一些其他选项用于自定义模式窗口-宽度、填充、Esc按钮行为等。使用SweetAlert2尝试此操作
.done(function (data) {
swal({
title: 'Thank you for your order',
type: 'success',
html: data
});
});
.done(function (data) {
swal({
title: 'Thank you for your order',
type: 'success',
html: true,
text: data
});
})
注意:SweetAlert回购协议似乎未得到维护。试试看。它与Sweetalert相同,但在modal中支持HTML,以及一些其他自定义模式窗口的选项-宽度、填充、Esc按钮行为等。使用Sweetalert2或Sweetalert?使用Sweetalert2或Sweetalert?
.done(function (data) {
swal({
title: 'Thank you for your order',
type: 'success',
html: true,
text: data
});
})