[removed] array.length returns undefined

后端 未结 5 1157
执念已碎
执念已碎 2020-12-23 19:29

I have a set of data that is being passed on by the PHP\'s json_encode function. I\'m using the jQuery getJSON function to decode it:



        
5条回答
  •  天命终不由人
    2020-12-23 20:05

    An easy fix to this question is to add '[' in the start of your json file, and ending it with a ']'. This solved it for me.

提交回复
热议问题