<script type="text/javascript">
var str = '{"name":"jack","age":21,"address":"shenzhen"}'; var jsonObject = eval('('+str+')'); alert("name="+jsonObject.name+",age="+jsonObject.age+",addess="+jsonObject.address); </script>本文共 272 字,大约阅读时间需要 1 分钟。
<script type="text/javascript">
var str = '{"name":"jack","age":21,"address":"shenzhen"}'; var jsonObject = eval('('+str+')'); alert("name="+jsonObject.name+",age="+jsonObject.age+",addess="+jsonObject.address); </script>转载于:https://www.cnblogs.com/qqzy168/p/3164397.html