今天是10月11日

1、jq使div延时显示

$(function () {
    setTimeout(function () {
        $(".dh1").show();
    }, 600);
 })

2、jq在页面加载时就执行

方法一:jquery 中:$(function(){}) 括号内写你的内容
方法二:html  <body  onload=''>

<script type="text/javascript">
window.onload=function()//用window的onload事件,窗体加载完毕的时候
{
   //do something
}
</script>
方法三:$().ready(function(){
  alert("aaa");
})

3、 

猜你喜欢

转载自blog.csdn.net/PINK789/article/details/83012812