我無法檢查我的代碼是否錯誤,或者是否有任何語法錯誤。我花了更多的時間,所以想到在stackoverflow問。我的代碼中的jquery語法錯誤
$(document).ready(function() {
AjaxGet = function (url, storeageLocation, mySuccessCallback) {
var result = $.ajax({
type: "GET",
url: "/Regions/GetView",
async: true,
contentType: 'application/json',
dataType: "html",
success: function (viewData) {
alert(viewData);
storeageLocation = viewData;
mySuccessCallback(viewData);
},
error: function (xhr, ajaxOptions, thrownError) {
}
}).responseText;
return result;
};
alert(result);
});