第二天
This commit is contained in:
35
02. 前端Web基础(JS+Vue+Ajax)/JS-Vue/04. JS-函数.html
Normal file
35
02. 前端Web基础(JS+Vue+Ajax)/JS-Vue/04. JS-函数.html
Normal file
@@ -0,0 +1,35 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>JS-函数</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
|
||||
<script>
|
||||
// function add(a, b) {
|
||||
// return a + b;
|
||||
// }
|
||||
// let c = add(10, 10);
|
||||
// console.log(c);
|
||||
|
||||
// let a = (a, b) => {
|
||||
// return a + b;
|
||||
// }
|
||||
// let c = a(10, 20);
|
||||
// console.log(c);
|
||||
|
||||
let a = function (a, b) {
|
||||
return a + b;
|
||||
}
|
||||
let c = a(10, 10);
|
||||
console.log(c);
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user