Using jQuery ajax response data

前端 未结 3 1310
眼角桃花
眼角桃花 2021-02-20 17:13

I am using ajax post and am receiving data in the form of html. I need to split up the data and place pieces of the data all over the page. I built my response data to be someth

3条回答
  •  伪装坚强ぢ
    2021-02-20 17:43

    Why don't you string the answers together within confirm.php with the | character, then when the string gets returned as the variable data you can split it with datas = data.split("|") and access the individual answers with data[0], data[1], etc.

提交回复
热议问题