1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| /* Fichier FicRap.js
[
{
"FicRapQuotMagS1":[
"/stat/Fic6Semaine1",
"NONE",
"/stat/Fic3Semaine1",
"NONE",
"NONE",
"/stat/Fic6Semaine1"
],
"FicRapQuotMagS2":[
"NONE",
"NONE",
"NONE",
"NONE",
"NONE",
"NONE"
]
}
]
*/
$(function(){
$.getJSON("FicRap.js", function(json){
$.each(json, function(i,item){
console.log("élément[" + i + "] = [" + item.FicRapQuotMagS1 + "], [" + item.FicRapQuotMagS2 + "]");
console.log("FicRapQuotMagS1[2] = " + item.FicRapQuotMagS1[2]);
});
});
}); |
Partager