$.ajax(
{
type: "GET",
url: 'Home/GetMsg',
success: function (result) { },
error: function (req, status, error) {}
});
默認URL採用Home/GetMsg的相對路徑。我從不同的控制器/視圖調用這個函數來干擾URL。 我怎樣才能在這裏提到絕對和相對的路徑。我也試圖與 網址:「http://abc.com/Home/Getmsg」,但再次它不工作JQUERY Ajax中的Relatve和絕對路徑