利用数组求两个数的加减乘除

<!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 max (name1 ,name2 ){
                
                return[name1+name2 , name1-name2 , name1*name2, name1/name2]
         }
               
              var a=  max(1,1)
               console.log(a);
    </script>
</body>
</html>

1

上一篇:MySQL比like语句更高效写法locate position instr find_in_set


下一篇:C++ string类对象占多少个字节?