Skip to content

Instantly share code, notes, and snippets.

@ym405nm
Created September 20, 2012 00:43
Show Gist options
  • Save ym405nm/3753276 to your computer and use it in GitHub Desktop.
Save ym405nm/3753276 to your computer and use it in GitHub Desktop.
ajax plain
<!DOCTYPE html>
<html>
<head>
<title>test</title>
<meta charset="utf-8">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
<script>
$(function(){
var url = "http://localhost/";
$.getJSON(url,null,function(data){
console.log(data);
});
});
</script>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment