有一數據以下:數組
data = {code: "200", content: Object, message: "succeed", succeed: true}code
data是object對象,如何將其變爲數組呢,能夠在data外圍加上[object]對象
好比:var treeData=[data],執行代碼後treeData類型爲Arrayobject