0
我有這個AJAX jQuery函數數據:如何使用Ajax jQuery的功能,以傳遞字符串URL和
$.ajax({
url: '/Member/SaveCoordinates/@Model.Id',
type: "POST",
data: window.image.pinpoints,
success: function (data) {
alert(data);
},
error: function() {
alert("error");
}
});
return false;
});
這裏是我的控制器:
public string SaveCoordinates(string Id, object[] pFrame)
{
do something...
}
我希望能夠通過在URL中的字符串ID,然後還傳遞對象window.image.pinpoints。該ID不必通過網址,這就是我通常這樣做的方式。我如何得到這個工作?