-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
37 lines (37 loc) · 813 Bytes
/
index.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
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>Example</title>
<script src="jThread.js" type="text/javascript"></script>
</head>
<body>
Example
<pre>
var sum = jThread(
function(a, b) {
return parseInt(a, 10) + parseInt(b, 10);
},
function(result) {
console.log(arguments);
console.log('a + b = ' + result);
}
);
sum('19s', '11s');
sum(2, 1);
</pre>
</body>
<script>
var sum = jThread(
function(a, b) {
return parseInt(a, 10) + parseInt(b, 10);
},
function(result) {
console.log(arguments);
console.log('a + b = ' + result);
}
);
sum('19s', '11s');
sum(2, 1);
</script>
</html>