Created
February 3, 2015 06:01
-
-
Save yankchina/1d96fdc5af0b84860b54 to your computer and use it in GitHub Desktop.
jQuery
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
(function($) { | |
$(function() { | |
$('#returnData').html(''); | |
$.ajax({ | |
url: "./api/list.php", | |
success: function(data) { | |
$("#returnData").html(JSON.stringify(data)); | |
} | |
}); | |
}); // end of document ready | |
})(jQuery); // end of jQuery name space |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
jQuery Ajax 做 get 的样例数据