1 2 3 4 5
$(function() { $("#getajax").click(function() { $.getJSON("/cgi-bin/python.py", function(data) { console.log(data.name);}); }); });