我有这个功能
function getAllDays(year,month){
var getdate = new Date(); //Used to prevent caching during ajax call
$.getJSON("AantalUrenAjax?_d" +(new Date().getTime()) +"&jaar=" + year + "&maand=" + month ,function(data)
{
$.each(data, function(index, value)
{
windows.alert(('#Dag').val(value.Maand));
});
});
ajax 调用给我的 JSON 是:
[{"Dag":"2013","Maand":"10","Jaar":"01","aantalafspraken":0},
{"Dag":"2013","Maand":"10","Jaar":"02","aantalafspraken":0},
{"Dag":"2013","Maand":"10","Jaar":"03","aantalafspraken":0},
]
我怎样才能检索值?
windows.alert(('#Dag').val(value.Maand));
崩溃:(