json转数组

上面代码中 response.data就是后端返回的 json, self.userData就是申明的一个数组 self.userData = [response.data];//json转数组   直接把json加个数组的[]就行了,简单吧
相关文章
相关标签/搜索