success: function (data) {
$.each(JSON.parse(data), function (index, o) {
var s = "";
s += "
";
s += "";
s += "" + o.AttendanceInfo.Dates + "";
s += "" + o.AttendanceInfo.LastTime + "";
s += "" + o.AttendanceInfo.FristTime + "";
s += "";
s += "";
$("#AttendanceTime tr:gt(0)").remove();
data里面也有值啊[{"Dates":"2014.02.11","LastTime":"2014/2/11 17:38:20","FristTime":"2014/2/11 8:25:54")
你的o就相当于一个{"Dates":"xxx","LastTime":"xxx","FristTime":"xxx"},根本没有AttendanceInfo这个字段,直接o.Dates就可以了
o.AttendanceInfo.Dates?还是o.Dates???
谢谢了,不过还是有点不懂
@灬丶: 你的AttendanceInfo哪儿来的啊?就没这个字段。。。