这是什么意思? (Google Maps API) [英] What does this mean? (Google Maps API)

查看:116
本文介绍了这是什么意思? (Google Maps API)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在控制台中得到了这个错误信息。谁能解释为什么?并且页面正在运行。



  js?key = MyAPIKey& v = 3.exp& libraries = places,drawing,geometry :32 InvalidValueError:不是HTMLInputElement_.ab @ js?key = MyAPIKey& v = 3.exp& libraries = places,drawing,geometry的实例:32  

$ b

这意味着您没有为您的html输入元素设置正确的ID。
Google API无法在您的html代码中找到该控件。因为输入元素的id不正确。



如果您使用 textarea ,那么它将不起作用,因为google会自动完成仅支持 window.HTMLInputElement(输入标签)



更多详情请检查链接



您也可以在这里找到示例 Google地图API


i've got this error message in the console. can anyone explain why? and the page is running as it should be.

js?key=MyAPIKey&v=3.exp&libraries=places,drawing,geometry:32 InvalidValueError: not an instance of HTMLInputElement_.ab @ js?key=MyAPIKey&v=3.exp&libraries=places,drawing,geometry:32

解决方案

InvalidValueError: not an instance of `HTMLInputElement`

That's mean you have not set proper id of your html input element. Google API not able to find that control in your html code. Because of wrong id of input element.

If you using textarea then it will not work because google maps autocomplete now supports only window.HTMLInputElement(input tags)

For more details Please Check this Link

You can also find examples here of Google Map API

这篇关于这是什么意思? (Google Maps API)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆