passing array from php to javascript

前端 未结 3 1653
再見小時候
再見小時候 2021-01-25 02:18

Hello I\'m trying to pass several arrays from php to javascript. For some of them it works, for others not. I get an array of filenames and an array which contains the content o

3条回答
  •  一向
    一向 (楼主)
    2021-01-25 02:34

    you initiate

    var textListArray=new Array(5);
    

    but try to use

    listTextArray
    

    Use the same name and everything will be alright

提交回复
热议问题