Skip to content

Instantly share code, notes, and snippets.

@toshimasa-nanaki
Created November 12, 2017 13:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toshimasa-nanaki/e0b7deb0d0e19315eec9d786082af3a2 to your computer and use it in GitHub Desktop.
Save toshimasa-nanaki/e0b7deb0d0e19315eec9d786082af3a2 to your computer and use it in GitHub Desktop.
API を呼び出し(失敗)
<!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