Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/445.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 未捕获类型错误:无法读取属性';authenticateClientAndRetrieveSessionId';未定义的_Javascript_Vue.js_Vuetify.js_Bing Maps_Autosuggest - Fatal编程技术网

Javascript 未捕获类型错误:无法读取属性';authenticateClientAndRetrieveSessionId';未定义的

Javascript 未捕获类型错误:无法读取属性';authenticateClientAndRetrieveSessionId';未定义的,javascript,vue.js,vuetify.js,bing-maps,autosuggest,Javascript,Vue.js,Vuetify.js,Bing Maps,Autosuggest,我将Vue.js与Vuetify框架一起使用。我需要使用带有位置地址字段的表单。当用户开始输入地名时,该字段必须建议位置地址列表。 最终目标是在Vue js框架上实现如下所示: 我找到了解决方法 我使用了共享的代码段,现在我的代码如下所示: 函数GetMap(){ Microsoft.Maps.loadModule('Microsoft.Maps.AutoSuggest'{ 回调:onLoad, errorCallback:onError }); 函数onLoad(){ var option

我将Vue.js与Vuetify框架一起使用。我需要使用带有位置地址字段的表单。当用户开始输入地名时,该字段必须建议位置地址列表。 最终目标是在Vue js框架上实现如下所示:


我找到了解决方法

我使用了共享的代码段,现在我的代码如下所示:

函数GetMap(){ Microsoft.Maps.loadModule('Microsoft.Maps.AutoSuggest'{ 回调:onLoad, errorCallback:onError }); 函数onLoad(){ var options={maxResults:5}; var manager=new Microsoft.Maps.AutosuggestManager(选项); manager.attachAutosuggest(“#search_78”、“#header search”、selectedsuggest); } 函数onError(消息){ document.getElementById('printoutPanel')。innerHTML=message; } 功能选择建议(建议结果){ document.getElementById('printoutPanel').innerHTML= “建议:”+suggestionResult.formattedSuggestion+ “
纬度:”+suggestionResult.location.latitude+ “
Lon:”+suggestionResult.location.longitude; } }