ad = function() {
            var script = document.createElement('script');
            script.type = 'text/javascript';
            script.src = 'https://webapi.amap.com/loader.js';
            script.onload = function() {
                AMapLoader.load({
                    key: "041db813f69a2424f234fade1e3b3605", 
                    version: "2.0",
                    plugins: ["AMap.Scale", "AMap.ToolBar"],
                    AMapUI: { version: "1.1", plugins: ["overlay/SimpleMarker"] }
  