Tuesday, 15 September 2015

javascript - Jquery get data from JSON (undefined) -


When I try to get value from JS data which is undefined

  $ BaseURL + 'vacation / show /' + name_surname, function (data) {warning (data); // Return [{"id": "1", "title": "test", "start": "2015-03 -04", "end": "2015-03-04"}] Warning (data. Start); // Return unscheduled (should be here 2015-03-04)});  

I just need to get started value from the data, how can I fix it?

Use this:

  $ Get (url, function (data) {/ * do stuff * /}, 'json');  

Or this:

  $ GetJSON (URL, Function (Data) {/ * Accessories *}};  

No comments:

Post a Comment