yanbolan
文章282
標籤199
類別26
js引用传递

js引用传递

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script>
var fun = function(){
console.log("Hello World");
};
setInterval(fun, 1000);
fun =function(){
console.log("Hello World2");
};
</script>
</body>
</html

会一直输出

1
Hello World

博主:yanbolan
文章連結:https://yuris.site/2023/03_24_3dab0886.html
版权声明:本文采用 CC BY-NC-SA 3.0 CN 协议进行许可
×