WEB开发网
开发学院网页设计JavaScript Prototype实战教程----8.顶层对象 阅读

Prototype实战教程----8.顶层对象

 2010-09-14 13:10:22 来源:WEB开发网   
核心提示: </script><hr><script>function TimeExe(){var timerExe=newPeriodicalExecuter(showTime,1);}function showTime(){var time =new Date(

</script>

<hr>
<script>
function TimeExe()
{
  var timerExe=new PeriodicalExecuter(showTime,1);
  
  }
  function showTime()
  {
    var time =new Date();
    var d = $('myDiv');
    d.innerHTML=time;
    }
    </script>
<div id="myDiv">
<p>This is a paragraph</p>
<input type="button" value=定时器测试 onclick="TimeExe();"><br></div>
<hr>
<script>
  function TestNumber()
  {
    var n=50;
    var b=3;
    alert(n.toColorPart());
    alert(n.succ());
alert(b.toPaddedString());
   //b.times(alert());
    }
  </script>
  <input type="button" value='Number测试' onclick="return TestNumber();"/><br>
</body>
</html>

上一页  1 2 

Tags:Prototype 实战 教程

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接