FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
JavaScript-Learning/basic/module.html at master · xiazhe/JavaScript-Learning · GitHub
xiazhe
/
JavaScript-Learning
Public
Notifications
You must be signed in to change notification settings
Fork
3
Star
4
Code
Issues
0
Pull requests
1
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
JavaScript-Learning
/
basic
/
module.html
Copy path
More file actions
More file actions
Latest commit
History
History
History
57 lines (42 loc) · 1.15 KB
Breadcrumbs
JavaScript-Learning
/
basic
/
module.html
Copy path
File metadata and controls
57 lines (42 loc) · 1.15 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
<!DOCTYPE html
>
<
html
>
<
head
>
<
meta
http-equiv
="
Content-Type
"
content
="
text/html; charset=utf-8
"
/>
<
title
>
123
</
title
>
<
meta
charset
="
utf-8
"
/>
</
head
>
<
body
>
<
script
>
console
.
log
(
window
.
name
)
;
// Two
// var module = (function () {
// var name = 'module';
// function func1(){
// console.log('func1');
// }
// function func2(){
// console.log('func2');
// }
// function getName(){
// return name;
// }
// function setName(value){
// name = value;
// }
// var funcSet = {
// func1: func1,
// func2: func2,
// getName: getName,
// setName: setName
// }
// return funcSet;
// })();
//module.func2(); // "func1"
// var name = module.getName();
// console.log(name);
// module.setName('123');
// name = module.getName();
// console.log(name);
</
script
>
</
body
>
</
html
>
Back
|
FazBrowse Home
|
New Git URL