首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网络技术 > 网络基础 >

GMap2未定义(偶然),很奇怪啊

2013-01-01 
GMap2未定义(偶尔),很奇怪啊。。。webbroswer执行本地脚本的时候有时候(很少的情况)会出现GMap2未定义的错误

GMap2未定义(偶尔),很奇怪啊。。。
webbroswer执行本地脚本的时候有时候(很少的情况)会出现GMap2未定义的错误懂googlemap 给看看

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
  <head>
    <meta http-equiv="content-type" content="text/html;"/>
    <title>google map</title>
 <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAA" type="text/javascript" charset="utf-8"></script>
 <script type="text/javascript">
...
function initialize(Arraylat,Arraylon) 
{
        if (flag == "1")
    { 
             var map = new GMap2(document.getElementById("map_canvas"));
         window.map1=map;
             map....
         }
     }

</script>
......

[解决办法]
你的key怎么那么短啊,用google map api要先申请key的
[解决办法]
1. 网络情况不好
2. Key无效
[解决办法]
不懂,只为顶帖

热点排行