<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>数值型</title>
</head>
<body>
<script type="text/javascript">

var num = 1988;
/*
if(!isNaN(num)){
document.write("非数值型");
}
*/

if(num.constructor == Number){
document.write(
"数值型");
document.write(
typeof num.toString());
}
document.write(
"<br/>");
document.write(Number.MAX_VALUE
+ "<br/>");
document.write(Number.MIN_VALUE
+ "<br/>");

var a = 10 ;
var b = a++ ;//先执行再运算
var c = ++a ;//先运算再执行

//document.write(a + "<br/>");
document.write(b + "<br/>");
document.write(c
+ "<br/>");

</script>
</body>
</html>

相关文章:

  • 2021-12-12
  • 2022-12-23
  • 2021-09-13
  • 2021-12-24
  • 2022-12-23
  • 2021-06-20
  • 2021-08-20
  • 2021-08-17
猜你喜欢
  • 2022-12-23
  • 2018-02-06
  • 2021-12-14
  • 2022-12-23
  • 2021-09-14
  • 2021-10-21
  • 2021-12-24
相关资源
相似解决方案