* 生成城市(使用关联数据)
(country)
| 1077 | * 生成城市(使用关联数据) |
| 1078 | */ |
| 1079 | function generateCity(country) { |
| 1080 | // 如果还没有选择位置,先选择一个 |
| 1081 | if (!currentLocation) { |
| 1082 | selectLocation(country); |
| 1083 | } |
| 1084 | return currentLocation ? currentLocation.city : 'New York'; |
| 1085 | } |
| 1086 | |
| 1087 | /** |
| 1088 | * 生成州/省份(使用关联数据,与城市匹配) |
no test coverage detected