-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathThread.html
43 lines (40 loc) · 1.04 KB
/
Thread.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Pattaya.Global.Thread</title>
<link rel="stylesheet" href="css/base.css" />
<link rel="stylesheet" href="css/demo.css" />
<script type="text/javascript" src="js/jquery-1.7.js"></script>
<script type="text/javascript" src="js/global.js"></script>
</head>
<body>
<article class="layout">
<hgroup class="header">
<h1>Pattaya.Global.Thread</h1>
<h4>定义线程方法:</h4>
</hgroup>
<ol>
<li class="cbox">
<h3 class="title">sleep(int ms)</h3>
<div class="container">
<h4 class="subtitle">概述:</h4>
<div class="subcon">
挂起线程。参数为挂起的毫秒数。
</div>
<h4 class="subtitle">Example:</h4>
<div class="subcon example">
<code>
<pre>
var b = 1;
Pattaya.Global.Thread.sleep(1000); //挂起1秒
alert(0); // 1秒后出现弹框。
</pre>
</code>
</div>
</div>
</li>
</ol>
</article>
</body>
</html>