条件运算符、其他运算符
更多免费教学文章请关注这里



<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Document</title>
<script type="text/javascript">
var a=3;
var b=5;
var c=a>b?a:b;
console.log(c);
var a=1;
a+=1;
console.log(a);
var b=8;
var z=10;
console.log(b++);
console.log(b);
var y=++z+z--; 13 11 +11
console.log(y);
</script>
</head>
<body>
</body>
</html>
相关文章:
-
2022-12-23
-
2021-10-06
-
2021-03-06
-
2022-01-12
-
2021-09-25
-
2022-01-31
-
2021-09-15
-
2021-09-30