CitySelect 城市选择器
基础用法
城市选择器基础用法。
北京市

显示代码
自定义热门城市
北京市

显示代码
Attributes
参数 | 说明 | 类型 | 可选值 | 默认值 |
currentCity | 当前展示城市名称 | string | — | — |
hotCity | 自定义热门城市(支持全称或者简称,示例:['北京']或者['北京市']) | array | — | — |
apiKey | 请求城市列表时用到的lbs.qq.com官网控制台申请的开发者key(必传) | string | — | — |
Events
事件名称 | 说明 | 回调参数 |
select | 城市选择回调 | city: 返回的城市数据信息 |