Storing ajax response array into a variable for later usage

后端 未结 4 1405
伪装坚强ぢ
伪装坚强ぢ 2021-02-03 13:02

Hi I need to store an AJAX Response into two variables x and y or into a array. My AJAX response is a array. I am able to see the data but only with and alert into che call. I n

4条回答
  •  梦如初夏
    2021-02-03 13:39

    if you decalre the variable you can access the value out side of ajax.

    eg:

    
    

    if the ajax works good you can acces the variable x and y globaly

提交回复
热议问题