📜  js 设置超时可见性 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:24.895000             🧑  作者: Mango

代码示例2
function initialSetup() {
  if (document.getElementById("yellow") != null) {
    document.getElementById('yellow').style.visibility = 'hidden';
    setTimeout("document.getElementById('yellow').style.visibility = 'visible'", 2000);
  }