了解下json,但是alert(student); 没有反应,不知道问题出在哪里,高手指教……<html>
<head>
<script type="text/javascript" src="F:\LIB\json-lib-2.4-jdk15.jar"></script>
<script type="text/javascript">
function json() {
alert("start");
var student = new Object(); 
student.name = "Lanny"; 
student.age = "25"; 
student.location = "China"; 
var student = JSON.stringify(student); 
alert(student); 

</script>
</head>
<body onload="json()">
</body>
</html>