📜  如何在网页上显示一段几秒钟 - 无论代码示例

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

代码示例1
function fun() {
  $('p').hide();  //better to have id selector
}

var inter = setTimeout(fun, 1000); //1000 represents 1 second