Giter Site home page Giter Site logo

Comments (7)

zaaach avatar zaaach commented on May 18, 2024

@diguasange 你的initLocation()方法是异步请求定位的话,第一次打开定位城市可能为空;点击取消按钮返回的data是null,先判断下。

from citypicker.

diguasange avatar diguasange commented on May 18, 2024

intiLocation()方法如下:
image
请问怎么解决初次定位城市为空的问题?

from citypicker.

zaaach avatar zaaach commented on May 18, 2024

初次定位为空,打开CityPicker后默认就是定位失败

from citypicker.

diguasange avatar diguasange commented on May 18, 2024

没有显示定位失败,定位城市按钮无显示

from citypicker.

diguasange avatar diguasange commented on May 18, 2024

在onClick()方法中的onLocate()方法,在点击时似乎并未被调用,因为在onLocate()方法内添加Log输出定位城市数据,点击时并无log输出

from citypicker.

zaaach avatar zaaach commented on May 18, 2024

你的cityLocated默认为空的吧,因为你传了LocatedCity,就是已经定位了城市所以点击没反应。还不明白的话加QQ交流群601783167

from citypicker.

diguasange avatar diguasange commented on May 18, 2024

谢谢作者!

from citypicker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.