-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscriptEx.html
More file actions
60 lines (47 loc) · 1.01 KB
/
scriptEx.html
File metadata and controls
60 lines (47 loc) · 1.01 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> ÀÚ¹Ù½ºÅ©¸³Æ® ¿¹Á¦ </title>
</head>
<body>
</body>
</html>
<script>
/*var oAppleModule = (function(){
var nAppleNumber = 1;
var oAppleInfo = {
color : "deepblue",
size : 5
}
var oCopyAppleInfo = {
color : oAppleInfo.color,
size : oAppleInfo.size
}
function getAppleColor(){
console.log("nAppleColor is : " + oAppleInfo.color);
}
function plusOneAppleNumber(){
return nAppleNumber++;
}
return {
getAppleColor : getAppleColor,
plusOneAppleNumber : plusOneAppleNumber,
oAppleInfo : oAppleInfo
// oAppleInfo : oCopyAppleInfo
}
})();
oAppleModule.oAppleInfo.color = "red";
oAppleModule.getAppleColor();
*/
function wrapFunction(){
var nAppleNumber = 1;
this.getApple = function(){
console.log("nAppleNumber is : " + nAppleNumber);
}
function plusOneAppleNumber(){
return nAppleNumber++;
}
}
var oWrap = new wrapFunction();
oWrap.getApple();
</script>