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

javascript解析JSON---将字符串转换为json对象
<script type="text/javascript">
	var str = '{"name":"jack","age":21,"address":"shenzhen"}';
	var jsonObject = eval('('+str+')');
	alert(jsonObject.name);
</script>

?