私のコードで行われた最後の ajax 呼び出しを取得したい。
ここに私のコードがあります
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script src="Scripts/jquery-1.7.1.min.js"></script>
<script>
function getCreateAccount() {
$.ajax({
type: "GET",
url: "/Account/Register/",
contentType: "application/json; charset=utf-8",
dataType: "json"
});
console.log($.ajax.mostRecentCall.args[0]);
}
</script>
</head>
<body>
</body>
</html>
しかし、コンソールに表示されると、「TypeError: $.ajax.mostRecentCall is undefined」と表示されます。
ありがとう、