Json
<html>
<head>
<meta name="vs_defaultClientScript" content="JavaScript">
<script>
function jsontest()
{
//json
var jsontext = '{"man":{"weight":"75kg","age":"24"},"ar":["1","2","3","4"]}';
//解析json
var aman = eval("("+jsontext+")");
//取出json中的信息
alert(aman.man.weight);
}
</script>
</head>
<body onload="jsontest();">
</body>
</html>