在写用ajax让php和js交互的时候,碰到的很蛋疼的事情。如何将json数据,类似:[{"title":"标题","artist":"小草","album":"相册","age":"20"},{},{},{},{},{},{}]转化成[{title:"标题",artist:"小草",album:"相册",age:"20"},{},{},{},{},{},{}]key不带引号。
如何将json数据,类似:[{"title":"标题","artist":"小草","album":"相册","age":"20"},{},{},{},{},{},{}]转化成[{title:"标题",artist:"小草",album:"相册",age:"20"},{},{},{},{},{},{}]key不带引号。
[{"title":"标题","artist":"小草","album":"相册","age":"20"},{},{},{},{},{},{}]转化成[{title:"标题",artist:"小草",album:"相册",age:"20"},{},{},{},{},{},{}]key不带引号。
转化成[{title:"标题",artist:"小草",album:"相册",age:"20"},{},{},{},{},{},{}]key不带引号。
[{title:"标题",artist:"小草",album:"相册",age:"20"},{},{},{},{},{},{}]key不带引号。
key不带引号。
海绵宝宝撒
相关分类