[{“日期”:“2019-02-10”,“诉状”:1},{“日期”:“2019-02-12”,“诉状”:1},{“日期”:“2019-02-14”,“诉状”:1}]
我可以通过Jquery代码轻松地访问它
// AJAX Request to get the data by UserID and Week 1
$.get('/dashboard/performance?name=' + document.getElementById('agents').value + '&week=0', function(data){
$.each(data,function(i,value){
var tr =$("
");tr.append($("
",{text : value.date
})).append($("
",{text : value.pleads
}))
$('#tableData-performance-week1').append(tr);
})
});
{“adminleads”:[{“date”:“2019-02-02”,“aleads:1}],“managerleads”:[{“date”:“2019-02-01”,“mleads:1}],“personalleads”:[{“日期”:“2019-02-02”,“答辩状”:2},{“日期”:“2019-02-03”,“答辩状”:1},{“日期”:“2019-02-04”,“答辩状”:1},{“日期”:“2019-02-05”,“答辩状”:1},{“日期”:“日期”:“2019-02-06”,“答辩”:1}]
如何通过JQuery访问它们?因为我试过了,但我不能正常使用它们谢谢你