
您需要将数据作为字符串/ json发送。您正在发送一个javascript对象。另外,该URL可能需要是绝对URL,而不是相对URL
$("#meaning").blur(function () { $.ajax({ type: "POST", url: '/GetMeaning/', data: JSON.stringify({expression: "testexpression"}), contentType: "application/json; charset=utf-8", dataType: "json", success: successFunc, error: errorFunc }); function successFunc(data, status) { $("#dictionaryDropDown").html(data); } function errorFunc() { alert('error'); }})欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)