摘要:
源文件: http://pan.baidu.com/share/link?shareid=3199918884&uk=3912660076System.Threading.Timer is a simple, lightweight timer that uses callback methods and is served by thread pool threads. It is not recommended for use with Windows Forms, because its callbacks do not occur on the user interface t 阅读全文
摘要:
window对象 window对象是客户端JS的全局对象。注意:调用window对象的属性和方法是可以省略“window.”直接写属性和方法。 JS对话框有三种形式 对应着alert,confirm,prompt方法。alert接受一个字符串作为参数 <script type="text/javascript"> function test() { alert('Do you like the blog ?'); } test(); </script>confirm同样接受一个字符串参数,但是会有返回值!!! ... 阅读全文
摘要:
Date对象: 创建Date对象使用Date构造函数 <script type="text/javascript"> function test() { //1.不带参数返回当前时间: var now = new Date(); alert(now); //Wed May 29 23:20:37 UTC+0800 2013 //2.传入一个数字作为日期的内部数字单位:毫秒(ms) var time = new Date(1234567890); alert(... 阅读全文