.版本 2
.支持库 spec
A.解析 (文本)
取到数组个数 = A.取属性 (“regeocode.pois”).成员数 ()
调试输出 (取到数组个数)
.如果真 (取到数组个数 ≠ 0)
.计次循环首 (取到数组个数, 计次)
调试输出 (A.取属性 (“regeocode.pois[“+到文本(计次-1)+”]”).取通用属性 (“name”))
.计次循环尾 ()
只输出了一次,这是为什么?求高手指点指点啊,求救啊!
只输出了一次,这是为什么?求高手指点指点啊,求救啊!
只输出了一次,这是为什么?求高手指点指点啊,求救啊!
json原文本如下:
‘{"status":"1","info":"OK","infocode":"1000","regeocode":{"formatted_address":"四川省成都市郫县犀浦镇怡景城市花苑","addressComponent":{"province":"四川省","city":"成都市","citycode":"028","district":"郫县","adcode":"510124","township":"犀浦镇","neighborhood":{"name":"怡景城市花苑","type":"商务住宅;住宅区;住宅小区"},"building":{"name":[],"type":[]},"streetNumber":{"street":"国宁东路","number":"124号","location":"103.97695,30.7549072","direction":"西","distance":"37.7623"},"businessAreas":[{"location":"103.97060364804467,30.756512428770947","name":"犀浦","id":"510124"}]},"pois":[{"id":"B001C8MESX","name":"怡景城市花苑","type":"商务住宅;住宅区;住宅小区","tel":[],"direction":"西","distance":"43.439","location":"103.976894,30.755037","address":"金牛大道往西(地铁2号线犀浦站口)","poiweight":"0.441787","businessarea":"犀浦"},{"id":"B0FFFCRDKX","name":"新理念钢琴教育中心","type":"科教文化服务;培训机构;培训机构","tel":"15882055687;13981868440","direction":"东","distance":"75.9442","location":"103.978097,30.755170","address":"金牛大道附近","poiweight":"0.133186","businessarea":"犀浦"},{"id":"B0FFG0YYZK","name":"协和牙科(兴业北街)","type":"医疗保健服务;诊所;诊所","tel":"13880287803","direction":"南","distance":"116.296","location":"103.976941,30.753974","address":"兴业北街1号","poiweight":"0.157442","businessarea":"犀浦"},{"id":"B0FFFT1CWA","name":"爵士岛咖啡(国宁东路)","type":"餐饮服务;咖啡厅;咖啡厅","tel":"028-87819833","direction":"北","distance":"132.657","location":"103.976895,30.756092","address":"国宁东路69号","poiweight":"0.193063","businessarea":"犀浦"},{"id":"B001C8P6C5","name":"犀浦外国语学校","type":"科教文化服务;学校;中学","tel":"028-69080580","direction":"东北","distance":"208.519","location":"103.979215,30.755921","address":"犀浦镇兴业北街111号","poiweight":"0.097019","businessarea":"犀浦"},{"id":"B0FFFE9MI6","name":"百伦百货(国宁东路)","type":"购物服务;商场;购物中心","tel":"028-87858095","direction":"西北","distance":"216.642","location":"103.975524,30.756128","address":"犀浦镇国宁东路69号","poiweight":"0.182668","businessarea":"犀浦"},{"id":"B001C8P4LY","name":"郫县犀浦新兴学校","type":"科教文化服务;学校;中学","tel":"028-87998556","direction":"南","distance":"224.46","location":"103.978097,30.753051","address":"犀浦龙吟村六组","poiweight":"0.247737","businessarea":"犀浦"},{"id":"B0FFFACVED","name":"兴业街104号院","type":"商务住宅;住宅区;住宅小区","tel":[],"direction":"西南","distance":"257.123","location":"103.976374,30.752804","address":"兴业街104号","poiweight":"0.23888","businessarea":"犀浦"},{"id":"B0FFFZBS8J","name":"犀浦镇幼儿园(东北门)","type":"科教文化服务;学校;幼儿园","tel":[],"direction":"东北","distance":"292.214","location":"103.979414,30.756893","address":"华都大道129","poiweight":"0.220805","businessarea":"犀浦"},{"id":"B0FFFAD2KP","name":"李记刀削面肥肠粉","type":"餐饮服务;快餐厅;快餐厅","tel":[],"direction":"西","distance":"298.305","location":"103.974239,30.754655","address":"岚牌街94附近","poiweight":"0.172385","businessarea":"犀浦"}],"roads":[{"id":"028H48F0150169634","name":"国宁西路","direction":"东北","distance":"136.586","location":"103.976,30.754"},{"id":"028H48F0160169073","name":"213国道","direction":"北","distance":"163.851","location":"103.977,30.7535"}],"roadinters":[{"direction":"北","distance":"172.066","location":"103.9767989,30.75348611","first_id":"028H48F0150167374","first_name":"兴业北街","second_id":"028H48F0150169634","second_name":"国宁西路"}],"aois":[{"id":"B001C8MESX","name":"怡景城市花苑","adcode":"510124","location":"103.976894,30.755037","area":"39004.527609"}]}}”
|