【发布时间】:2017-05-05 15:40:55
【问题描述】:
我刚刚创建了一个 ASPX 项目,并希望集成传单地图。
我之前在 HTML 页面中使用过传单,但现在 ASPX 要求我将所有内容都放在 <asp:content> 标记中。
我的代码
<asp:Content ID="MapPage" ContentPlaceHolderID="MainContent" runat="server">
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.3/dist/leaflet.css"
integrity="sha512-07I2e+7D8p6he1SIM+1twR5TIrhUQn9+I6yjqD53JQjFiMf8EtC93ty0/5vJTZGF8aAocvHYNEDJajGdNx1IsQ=="
crossorigin=""/>
<script src="https://unpkg.com/leaflet@1.0.3/dist/leaflet.js"
integrity="sha512-A7vV8IFfih/D732iSSKi20u/ooOfj/AGehOKq0f4vLT1Zr2Y+RX7C+w8A1gaSasGtRUZpF/NZgzSAu4/Gc41Lg=="
crossorigin=""></script>
<div id="mapid" style="height:100px; width:100px;"></div>
</asp:Content>
我从http://leafletjs.com/examples/quick-start/获取了链接和脚本标签
他们的教程...另外,VS17 说 HTML5 无法识别 crossorigin 或 integrity 字段...有什么建议吗?
【问题讨论】: