如果startDateTime
和endDateTime
是类似于这样的dateTime值:
Start: Mon Jan 10 2011 18:15:00 GMT+0000 (GMT Standard Time)
End: Mon Jan 10 2011 18:45:00 GMT+0000 (GMT Standard Time)
如何将 startDateTime
和 endDateTime
一起传递到下面的 ajax 调用中?
eventNew : function(calEvent, event)
{
var startDateTime = calEvent.start;
var endDateTime = calEvent.end;
jQuery.ajax(
{
url: '/eventnew/',
cache: false,
data: /** How to pass startDateTime & endDateTime here? */,
type: 'POST',
success: function(response)
{
// do something with response
}
});
},