百度地图调用报错Uncaught TypeError:Cannot read property 'fc' of undefined
来源:互联网 发布:新浪短网址api js 编辑:程序博客网 时间:2024/05/01 20:37
百度地图调用出现这个错误,说明你的百度地图没有在页面加载完之后调用,而是在页面加载之前调用的。
也就是下面这两行一定要在页面加载完之后进行调用
map = new BMap.Map("allmap",{maxZoom:8,minZoom:8});
map.centerAndZoom(new BMap.Point(122.825755,45.632862),8);
1 0
- 百度地图调用报错Uncaught TypeError:Cannot read property 'fc' of undefined
- 百度Map之Uncaught TypeError: Cannot read property 'fc' of undefined
- uncaught typeerror cannot read property 'data' of undefined 报错原因
- echarts.min.js:25 Uncaught TypeError: Cannot read property 'features' of undefined 报错解决方法
- $.getJSON报错Uncaught TypeError: Cannot read property 'id' of undefined解决方法
- Datatable报错Uncaught TypeError: Cannot read property 'style' of undefined
- DataTable插件报错:Uncaught TypeError: Cannot read property 'style' of undefined
- uploadify的JS组件报错:Uncaught TypeError: Cannot read property 'queueData' of undefined
- Angularjs报错:TypeError: Cannot read property 'slice' of undefined
- Extjs4---Uncaught TypeError: Cannot read property ‘items’ of undefined
- 【StackFlow】Uncaught TypeError: Cannot read property 'pageCount' of undefined
- Ckeditor: Uncaught TypeError: Cannot read property 'keyCode' of undefined 解决方法
- Uncaught TypeError: Cannot read property 'msie' of undefined问题解决方案
- Uncaught TypeError: Cannot read property 'options' of undefined 错误
- Uncaught TypeError: Cannot read property 'length' of undefined
- 错误:Uncaught TypeError: Cannot read property 'WebSocket' of undefined
- Uncaught TypeError: Cannot read property 'value' of undefined
- Uncaught TypeError: Cannot read property 'plugin' of undefined
- Android中的SlidingDrawer
- 重装mysql时最后的Apply security setting过不去
- 分区
- iOS开发之多种Cell高度自适应实现方案的UI流畅度分析
- cocos 屏幕适配 Http网络 粒子系统
- 百度地图调用报错Uncaught TypeError:Cannot read property 'fc' of undefined
- 魔术师发牌问题
- poj 3468 A Simple Problem with Integers
- 文件上传Upload
- $(window).load(function(){}) 和 $(document).ready(function(){})的区别
- cocos 动画 触摸事件
- Servlet
- Sequence小文件合并
- Java transient关键字使用小记