Provide json data {"p1":["zhangsan","nan","24"],p2:["lisi","nv","28"]}, js directly prints out name, gender, age .
Output effect:
Name | Gender | Age |
zhangsan | Male | 24 |
lisi | Female | 28 |
Code tips:
The above introduces the data processing in json format, including aspects of the content. I hope it will be helpful to friends who are interested in PHP tutorials.