0
我想要的只是一個JSON文件的簡單輸出。現在它給我回[object Object]
。Json響應意外返回[對象對象]
我在做什麼錯?
<script src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("button").click(function(){
$.getJSON("team.json",function(result){
$.each(result, function(i, field){
$("div").append(field + " ");
});
});
});
});
</script>
</head>
<body>
<button>Get JSON data</button>
<div></div>
內容第一,目標最後 – ezmilhouse 2011-04-01 21:30:49