I have a simple Javascript object like this:
var data = { date: new Date(), plainText: "test" };
when I am a user $.params(data)to build a query string, I get the following:
plainText=test
Meanwhile, the meaning is dateomitted.
Similarly, when I use $.ajax(), the value is datealso missing.
Is there a way to get jQuery to include the date value as a parameter?
date.toString()or date.toJSON()both will be fine with me.
source
share