JQuery with some very simple GET Method call and transfer data using the json program But constantly ran error, then IE tells me "SyntaxError"
But I have removed the data parameter is ok ...
Please help us to see in the end the problem? Thank you !!
var url = "/demo/test.do";
$.ajax({
url: url,
method: "GET",
dataType: "json",
data: jQuery.parseJSON('[{"dispatch" : "add"}]'),
success: function(data) {
alert(data);
},
error: function(jqXHR, textStatus, errorThrown) {
console.log(errorThrown);
}
});