更新时间:2022-06-05 23:52:11
你的功能看起来不对尝试
Your function doesnt look right try
function getAllDepts() {
$.getJSON('MyFilePath', function(data) {
var items = [];
$.each(data, function(key, val) {
//Doing things with my data.
});
});
}