我正在为Google Maps API(级别3)实例化自动填充输入,如下所示:
var input = document.getElementById('szukanyAdres');
autocomplete = new google.maps.places.Autocomplete(input);
autocomplete.bindTo('bounds', map);
Run Code Online (Sandbox Code Playgroud)
如何在运行时打开和关闭自动完成功能?