8 lines
398 B
JavaScript
8 lines
398 B
JavaScript
|
function showAlert(type, message) {
|
|||
|
const alertHtml = `
|
|||
|
<div class="alert alert-${type} alert-dismissible fade show" role="alert">
|
|||
|
<strong>操作提示:</strong> ${message}
|
|||
|
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|||
|
</div>`;
|
|||
|
$('#alertContainer').html(alertHtml);
|
|||
|
}
|