$.ajax({
type: "GET",
url: "url.php",
success: function(data){
}
suppose I use this to play
if I print out console.log (data), I can print my echo
in url.php, but if I need to receive more than two responses, what if I need to receive more than two responses? Can you separate me?
for example, I sent back on url.php
echo "ok";
echo "some data";
if it is printed directly, it will become
.oksome data
but I ajax the first one to confirm whether ok, second, I want to let him count back, not just ok
, I also want to check other data
how to achieve this?