Manivannan Murugavel
1 min readAug 9, 2018

--

$.ajax({
type:’<Type your Method(GET or POST)>’,
url: “<Your Controller URL>”,
dataType: ‘json’,
contentType: “application/json”,
success: function(data) {
console.log(data)
})
});
}
});

Note: If your Request and Response params is json, you can use dataType and contentType as json. Otherwise not need.

--

--

Manivannan Murugavel
Manivannan Murugavel

Written by Manivannan Murugavel

Artificial Intelligence and Data Science

Responses (1)