How do js or Jq get the current city and IP, and ask the boss for advice on the mobile end?

how do js or Jq get the current city and IP, and ask for advice on the mobile end? it"s best to find a small case. Thank you very much!


navigator.geolocation this api acquires latitude and longitude, and then finds some interfaces to analyze the latitude and longitude of the city. As for ip, it has not been done, but the backend can give it to you directly

.
Menu