Best way to pass a 2d array into JavaScript from PHP?

后端 未结 2 2018
清酒与你
清酒与你 2021-01-06 19:47

I have a PHP array I want to use in my JavaScript code. I\'d rather not do something like for all of the elements in it

2条回答
  •  不要未来只要你来
    2021-01-06 20:18

    Lazy method:

    
    

    This isn't the "best" method, but hey it works.

提交回复
热议问题