$.ajax({ | |
type: "GET", | |
url: "/huodong/doajax2.php", | |
data: "time=2", | |
dataType: "json", | |
success: function(result){ | |
$("#num").html(result); | |
} | |
}); |
echo json_encode($result[0]);
$.ajax({ | |
type: "GET", | |
url: "/huodong/doajax2.php", | |
data: "time=2", | |
dataType: "json", | |
success: function(result){ | |
$("#num").html(result); | |
} | |
}); |
echo json_encode($result[0]);