📜  how-to-hide-django-message-after-it-is-displayed-for-few-seconds - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:59.907000             🧑  作者: Mango

代码示例1
// suppose the `id` attribute of element is `message_container`.
var message_ele = document.getElementById("message_container");

setTimeout(function(){ 
   message_ele.style.display = "none"; 
}, 3000);
// Timeout is 3 sec, you can change it