Created
November 12, 2017 13:12
-
-
Save toshimasa-nanaki/e0b7deb0d0e19315eec9d786082af3a2 to your computer and use it in GitHub Desktop.
API を呼び出し(失敗)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script> | |
</head> | |
<body> | |
<script> | |
$(document).ready(function(){ | |
$.ajax({ | |
url: 'http://jvndb.jvn.jp/myjvn?method=getVulnDetailInfo&vulnId=JVNDB-2017-004616', | |
dataType: 'xml', | |
type: "GET", | |
success: function(res) { | |
console.log(res); | |
}, | |
fail: function(err){ | |
console.log(err); | |
} | |
}); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment