日期:2014-05-16 浏览次数:20391 次
$.ajax ({ type:'POST', url:'../php/a.php?ID='+a, success: function(data) { changeflow(data); } });
echo $hour; echo $day; echo $month;
echo join(',', array($hour, $day, $month));
------解决方案--------------------
这样不就行了
{'hour':{'name':'$hour','value':'1'},'day':{'name':'$day','value':'2'},...}
success: function(data){
data = eval('('+data+')');
alert( data.hour.name+':'+data.hour.value);
...
}