当前位置: 代码迷 >> JavaScript >> javascript门类
  详细解决方案

javascript门类

热度:145   发布时间:2012-08-25 10:06:20.0
javascript类型
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here4</title>

</head>
<body>
	<script type="text/javascript">
		document.write("javascript 变量");
	</script>
	
	<script type="text/javascript">
		var a = 13;
		var b = "13";     
		var c = "行有不得,反求诸己";
		var tab = a/b;
		
		alert("04a");
		alert(a);     //输出13
		alert(b);     //输出13
		alert(c);     //输出行有不得,反求诸己
		
		alert(tab); //输出1
		alert("a==b的结果:"+(a==b));    //输出true
		alert("a===b的结果:"+(a===b));    //输出false
		alert("a+b:"+(a+b));   //输出1313
		
	</script>

</body>
</html>

?

  相关解决方案