<html> <head><title>A Simple jQuery example!!</title></head> <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.js"></script> <script> $(function() { var local = 1; window.setInterval(function() { $("#display").append("<div>At " + new Date() + " local = " + local + "</div>"); local++; }, 3000); }); </script> <body> <center><div id="display"></div></center> <body> </html>執行結果:
參考資料:
1. http://www.jquery.com/
2. http://www.jquery.org/
3. http://www.json.org/
4. http://plugins.jquery.com/
沒有留言:
張貼留言