Google 个地点 API 中 "places search box" 的活动是什么?

What are the events for "places search box" in Google Places API?

我正在使用 Google 地图 JavaScript API。

从 google.maps.places.SearchBox(document.createElement('nameForElement')) 返回的对象是否有除 'places_changed' 事件以外的任何事件?

您可以在本例中看到地点搜索框。 Google Maps JavaScript API- places search box sample code

最后我需要做的是在点击时清除搜索框。但我认为此搜索框没有 'click' 事件。捕获点击事件的正确关键字是什么? 'mouseclick'、'click'、'onclick'...?

<input> 添加点击监听器。

对于链接示例,它将是:

  // Create the search box and link it to the UI element.
  var input = document.getElementById('pac-input');
  var searchBox = new google.maps.places.SearchBox(input);

  google.maps.event.addDomListener(input,'click',function(){
    this.value='';
  });