json轉數組

上面代碼中 response.data就是後端返回的 json, self.userData就是申明的一個數組 self.userData = [response.data];//json轉數組   直接把json加個數組的[]就行了,簡單吧
相關文章
相關標籤/搜索