1.0 代码:     obtn1.onclick=setInterval(show,1000)

 

 

obtn1.onclick=function()

{

    setInterval(show,1000)

}

 

 

2.0清空时间 设置返回值!   

odiv2.onmouseout=function()
{
 setTimeout(function(){odiv2.style.display='none';},1000);

}

3.0

   标签img 和a 的先后顺序。

  <a href="#" ><img src="shuzi/sj_02.jpg" /> </a>

 

 

4.0  一个有单位  一个无单位

  oul.style.width==-oul.style.left 

  alert(-oul.style.left)                         是NaN    

 

 

 

5,0   为什么字符串     比较是和'0'比  不是直接和0 比

     if(str.charAt(i)>='0'&&str.charAt(i)<='9')

 

 

6  注意大小写@mi

     odiv.offsetleft      

 

7   注意获取odiv.style.left    在<script></script> 时候javascript获取不到    只能赋值  不能获得数据  只能用odiv.offsetLife 来取得数据;

 

 

8  setInterval 和IF  else     中运动停止的包含关系

   setInterval(function()

   {  

      if()

       {} 

      else

        {}

   },30)  

  

 

posted on 2016-10-21 15:07  不学无丨  阅读(152)  评论(0)    收藏  举报