0

我的 application.dryml 文件中有这个:

<def tag="googlemap">
  <html>
    <head>
      <style type="text/css">
        html { height: 100% }
        body { height: 100%; margin: 0; padding: 0 }
        #map_canvas { height: 100% }
      </style>
        <script type="text/javascript">
        src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAIbK8zw8fqY&sensor=false">
      </script>
      <script type="text/javascript">
        function initialize() {
        var mapOptions = {
          mapTypeId: google.maps.MapTypeId.ROADMAP
        };
        var map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);
        var georssLayer = new google.maps.KmlLayer('http://waterwatch.org.au/waterwatch_php/all_sites.php');
        georssLayer.setMap(map);
        }
      </script>
    </head>
    <body onload="initialize()">
      <div id="map_canvas" style="width:100%; height:100%"><div param="map" /></div>
    </body>
    </html>
</def>

我收到错误“原始字符串中的非法字符 '&'”(maps.googleapis.com 链接中的参数分隔符。

如何在dryml中转义&字符?

4

0 回答 0