TypeError: data.activityDate is undefined
...s:data.products,psdid:data.psdid});var activityDateString=data.activityDate.spli...
帮我解决问题..
var activityDateString = data.activityDate.split("/");
var activitydate = new Date(activityDateString[2], activityDateString[1] - 1, activityDateString[0]);
var activityDateTomorrow = new Date();
var activityDateLastDay = new Date();
activityDateTomorrow.setTime(activitydate.getTime() + (1000 * 3600 * 24));
activityDateLastDay = new Date(activitydate.getFullYear(), activitydate.getMonth() + 1, 0);