<!DOCTYPE HTML>
<html>
<head>
<meta charset=UTF-8 />
<title>Nothing</title>
<style type="text/css">
</style>
<script type="text/javascript" src="jquery-1.8.0.min.js"></script>
<script type="text/javascript">
var jsonstr = "[{name: 'yugi111', mobile: '18819872982'} , {name: 'kyo', mobile: '18829872982'}]";
var jsonobj = eval ('(' + jsonstr + ')');
$ (jsonobj).each (function (i, dom)
{
for ( var p in dom)
{
document.write (p + ":" + dom[p]);
}
document.write ('<br>');
});
</script>
</head>
<body>
</body>
</html>
温馨提示:答案为网友推荐,仅供参考