We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用三级地址的情况下,整个数据包也不会太大,一次获取完后面刷会比较流畅 也可以方便后台对数据缓存(比如某次更新数据后直接生成一个json文件),这样前台也可以做缓存,只需要过有效期或给一个手动刷新的功能
The text was updated successfully, but these errors were encountered:
@shirne 目前每级刷新时间都不会超过1秒吧,主要看后台数据怎么处理的,不存在不流畅。一次性获取全部数据也可以,下个版本出吧
Sorry, something went wrong.
@shirne 想了一下还是决定不出, 1.如果要加,首先得定义城市的三级数据模型,假如模型字段不一致,其实也是浪费你们的时间去重构数据 2.缓存的问题,归根结底还是后台怎么去查询城市数据的问题,后台算法合理且最优,是不用担心请求时间的问题,那为什么要缓存呢 3.假如要初始化全部数据,那是不是能说,不需要这种模式,直接三级联动就行了,这个库的模式就是为了实时请求下一级城市数据而存在的,如果有全部数据,那没必要点击获取下一个城市 4.在此推一下高德地图的行政地区 api,然后自己组装数据就行了
No branches or pull requests
使用三级地址的情况下,整个数据包也不会太大,一次获取完后面刷会比较流畅
也可以方便后台对数据缓存(比如某次更新数据后直接生成一个json文件),这样前台也可以做缓存,只需要过有效期或给一个手动刷新的功能
The text was updated successfully, but these errors were encountered: