摘要: function test(){ alter(0);}setTimeout(test,1000);//相当于延迟执行 并且只执行一次setInterval(test,1000);//每秒钟执行一次 阅读全文
posted @ 2011-10-13 20:24 奇幻男孩 阅读(140) 评论(0) 推荐(0) 编辑
摘要: <a href="javascript:void(0);" onclick="openWin(this)">test</a><script type="text/javascript"> function openWin(obj) { obj.target = "_blank"; obj.href = "default.aspx"; obj.click(); } </script> 阅读全文
posted @ 2011-10-13 14:50 奇幻男孩 阅读(993) 评论(0) 推荐(0) 编辑