$(function() {
$('#test').click(function() {
$.ajax({
url: 'fenshu.json',
// data:"[{'name':'1', 'result'':'60''}]",
type: 'get',
dataType: 'json',
success: function(json) {
var item;
$.each(json, function(i, result) {
item = "<tr><td>" + result['name'] + "</td><td>" + result['result'] + "</td></tr>";
$('.table').append(item);
});
}
})
})
});
<table class="table"></table>
[{"name":"1", "result":"60"},{"name":"aaa", "result":"50"}]