We want to build a json string to store the administrative area data, the format would be :
The solution should be :
Of course, you should download the json.js from json.org first.
本文介绍了一种构建中国行政区划JSON字符串的方法,并提供了一个JavaScript示例来生成所需的JSON格式。通过定义TmsAdZone类来表示行政区域及其子区域,然后使用递归函数将这些区域转换为JSON格式。
We want to build a json string to store the administrative area data, the format would be :
The solution should be :
Of course, you should download the json.js from json.org first.

被折叠的 条评论
为什么被折叠?