【发布时间】:2017-10-11 02:42:42
【问题描述】:
我需要你的帮助,我正在学习 NativeScript,在这里我阅读了输出下方有 JSON 数据的 txt 文件。获取它们后,我想将其分配给 Array 国家/地区。但没有运气:(
公共国家:数组
console.log(响应)
console.log(JSON.parse(JSON.stringify(response)))
输出:
[ { "name": "阿富汗", “代码”:“AF” }, { “名称”:“阿尔巴尼亚”, “代码”:“AL” } ]
请帮忙。 问候,
【问题讨论】:
标签: json typescript nativescript