This article mainly introduces jquery to get the data in the JSON object sample, the code has comments, you refer to the use of the bar
Code as follows: $.ajax ({ URL: ' This address will be replaced by your own ', ' &NB Sp Data: {S_courseid:courseid, Currtime:new Date (). GetTime ()},//Add a timestamp, otherwise it will not update automatically &NBS P DataType: ' json ', success:function (data) &NB Sp { if (data!= null) { &N Bsp if (Data.length > 0) { &NBS P for (var i = 0; i < data.length i++) { &NB Sp Specids = Specids + data[i]. S_specialtyid + ","; Get data in a JSON object CO Ursetypeid= Data[i]. S_coursetypeid; } & nbsp if (Specids.length >0) { &NB Sp Specids = specids.substring (0,specids.length-1); } & nbsp }