鍍金池/ 問答/網(wǎng)絡(luò)安全  HTML/ 高德地圖的js sdk能否直接在APPCAN打包出來的APP中使用

高德地圖的js sdk能否直接在APPCAN打包出來的APP中使用

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
    html,body,#map{
        height: 100%;
    }
    </style>
    <script src="http://webapi.amap.com/maps?v=1.3&key=857c961ad147d8f8335245f4c97fee9f&plugin=AMap.Geocoder,AMap.MarkerClusterer"></script>
</head>
<body>
    <div id="map">

    </div>
    <script>
        new AMap.Map("map", {
            resizeEnable: true,
            center: [116,39],
            zoom: 13, 
            mapStyle: "blue_night" //
        });

    </script>
</body>
</html>

如上圖,采用高德地圖 js web端的方式初始化了地圖,在appcan的調(diào)試中心和預(yù)覽中都是正常的,在線打包后安裝app發(fā)現(xiàn)無法正常打開,app閃退,想請教一下原因

回答
編輯回答
冷眸

這個(gè)問題 你解決了沒?

2017年1月20日 04:01