日期:2014-05-16  浏览次数:20347 次

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>

?