$.ajax({
type: "POST",
url: /cgi-bin/getname.py,
data: "{"name":"Jack"}",
dataType: "json",
success:function(result) {
console.log(result);
}
});
for example, the above code sends a request directly to the background. How to use Python to capture json data?
my cgi.FieldStorage (). Getvalue ("name")
does not work properly