php - 在php中经过一段时间后我无法隐藏警报,然后我无法在php中添加onclick函数
问题描述
邮件已发送给管理员。管理员已收到用户的邮件并弹出消息,如消息已完全发送成功,但一段时间后消息并未消失
try(){
$mail->send();
$alert ='<div class="alert-success hide">
<span>Message Sent! Thank you for Contacting us.</span>
</div>';
}catch(Exception $e){
$alert ='<div class="alert-error hide">
<span>Something went wrong</span>
\\ write a code to hide the span after 3 sec
</div>';
}
如何获取自动隐藏弹出消息的代码?
解决方案
推荐阅读
- c# - ChromeDriver 无法在 Windows 7 中运行 Chrome。为什么?
- c# - 命名元组定义中的自定义名称成为默认名称“Item1”和“Item2”
- python - 重新连接后 Mqtt 不向订阅者发送数据
- r - 如何根据单独变量的 bin 识别一个变量的最大值
- testng - fail(String message) 方法在测试中被调用两次时的行为如何
- python - 无法使用 boto3 分页遍历 cloudwatch 上的所有警报
- c++ - 如何在关闭 Qt 控制台应用程序之前运行我的析构函数?
- spf - 什么被认为是 DMARC 失败?
- angular - 尝试为过去的项目安装 Angular 2
- swift - TableView 不会从外部数据源调用 cellsForRow