Files
JavaWeb/02. 前端Web基础(JS+Vue+Ajax)/JS-Vue/04. JS-函数.html
syx_computer 61ec7c9468 第二天
2025-10-13 10:15:32 +08:00

35 lines
544 B
HTML

<!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>