📅  最后修改于: 2022-03-11 14:59:59.907000             🧑  作者: Mango
// 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