录医案
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

18 lines
533 B

function showAlert(text,href = ""){
// 创建提示框元素
var $alertBox = $('<div class="custom-alert">'+text+'</div>');
// 将提示框添加到页面中
$("#page").append($alertBox);
//2秒后自动隐藏并移除提示框
setTimeout(function() {
$alertBox.css("opacity", "0");
if(href){
window.location.href = href;
}
setTimeout(function() {
$alertBox.remove();
}, 500); // 给提示框一些时间淡出,然后再移除
}, 500);
}