j0057 4 +357

just a test-黑暗中的矩阵,寒星光芒四射!

导航

2009年4月9日 #

js的lock

摘要: 对于一个函数test(),可以写成下面的模式:[code]var test_lock=false;function test(){ if(test_lock) setTimeout("test()",10); else test_body(); }function test_body(){ test_lock=true; //[test的主体] test_lock=false; }[/... 阅读全文

posted @ 2009-04-09 16:45 君宝 阅读(673) 评论(0) 推荐(0)