我认为您只需要再添加2个选项(
contentType和
dataType):
$('#my_get_related_keywords').click(function() { $.ajax({ type: "POST", url: "HERE PUT THE PATH OF YOUR SERVICE OR PAGE", data: '{"HERE YOU CAN PUT DATA TO PASS AT THE SERVICE"}', contentType: "application/json; charset=utf-8", // this dataType: "json", // and this success: function (msg) { //do something }, error: function (errormessage) { //do something else } });}


