multiple return values from PHP with jQuery AJAX

前端 未结 3 607
刺人心
刺人心 2020-12-23 02:34

I\'m using this jQuery code:

$.ajax
({
    type: \"POST\",
    url: \"customerfilter.php\",
    data: dataString,
    cache: false,
    success: function(htm         


        
3条回答
  •  無奈伤痛
    2020-12-23 03:08

    Why don't you return a JSON object. This way you can easily put many different results inside the ajax response.

提交回复
热议问题