<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
<script language=javascript>
<!--
var vehicle = new Object();
var vehicle.car = new Object();
vehicle.car.name="奔驰";
vehicle.car.weight=2500;
vehicle.car.speed="300公里/小时";
vehicle.car.oil=16;
vehicle.car.color="lightblue";
document.write("小汽车的行驶速度为:"+vehicle.car.speed);
document.write("<br>car的类型="+typeof(vehicle.car)+"<br>vehicle.car.speed的类型="+typeof(vehicle.car.speed));
//-->
</script>
</head>
<body>
</body>
</html>
这段代码有错吗/为会么在浏览器中什么也不显示?看了半天就是发现不了有什么毛病.