TypeError:data.activityDate未定义

时间:2016-03-16 04:11:17

标签: javascript jquery jquery-ui jquery-plugins

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);

0 个答案:

没有答案