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.