<!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>
function add(x,y,z){
var result = x+y+z
// console.log(result)
return result
}
var res = add(1,2,3)
console.log(res)
function test1(a){
console.log("传给后端",a)
}
test1(res)
</script>
</body>
</html>
04-04
1732
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
05-18
3436
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
03-31