Javascript examples for jQuery Method and Property:ajax
call ajax and put result
<html> <head> <script src="https://code.jquery.com/jquery-3.2.1.min.js"></script> <script lang="javascript">$(document).ready(function () { $.get("https://min-api.cryptocompare.com/data/price?fsym=ETH&tsyms=BTC,USD,EUR,GBP", function(data) { console.log(JSON.stringify(data)) }) }) /*w w w. ja v a2s .co m*/ </script> </head> <body> </body> </html>