cocos2d-x技術群新群:117871561
c++技術交流群:593010226
local str = cc.FileUtils:getInstance():getStringFromFile("xxxx.json")
local ok, datatable = pcall(function()
return cjson.decode(str)
end)
if true == ok and type(datatable) == "table" then
dump(datatable, "文字", 6)
--todo
else
--todo
end