<html>
<head>

<script type="text/javascript">
        var x="12";
		alert(x+234);
		alert(typeof (x+234));
		var flag=false;  //true=1 false=0;
		alert(flag+34);
</script>
</head>
<body>
   String str="ere";
   int x= 123;
   str+x;
</body>  
</html>

在js中boolean类型的值有两个true和false

其中true=1;

false=0;

和c中的差不多;

相关文章:

  • 2022-01-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-06
  • 2021-12-16
  • 2021-08-08
猜你喜欢
  • 2021-09-21
  • 2022-12-23
  • 2022-12-23
  • 2021-05-31
  • 2021-10-09
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案