1
如何獲得谷歌地方的狀態自動完成搜索..如果我在谷歌地方自動填充文本框中鍵入的東西,如果地方不存在,那麼如何警報,該地方是無效的?獲取谷歌地方的自動完成狀態
如何獲得谷歌地方的狀態自動完成搜索..如果我在谷歌地方自動填充文本框中鍵入的東西,如果地方不存在,那麼如何警報,該地方是無效的?獲取谷歌地方的自動完成狀態
我認爲你可以使用這樣的東西。
var displaySuggestions = function(predictions, status) {
if (status != google.maps.places.PlacesServiceStatus.OK) {
alert(status);
return;
}