【问题标题】:get jvectormap inside a content page在内容页面中获取 jvectormap
【发布时间】:2014-05-23 09:43:39
【问题描述】:

我很难在我的内容页面中获取 jvectormap,我在我工作的空白 Web 表单上进行测试,但现在在内容页面上我无法让它工作,

    <asp:Content ContentPlaceHolderID="Head" runat="server">
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
    <!-- jvectormap -->
        <script src="js/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js" type="text/javascript"></script>
        <script src="js/plugins/jvectormap/jquery-jvectormap-world-mill-en.js" type="text/javascript"></script>
    <script>
        $(document).ready(function () {
            alert("H");
        });
    </script>
</asp:Content>

<asp:Content ContentPlaceHolderID="Body" runat="server">
  <div id="world-map"></div>
</asp:Content>

【问题讨论】:

    标签: jquery html asp.net jvectormap contentplaceholder


    【解决方案1】:

    你必须初始化 JvectorMap

    $(document).ready(function () {
      $('#world-map').vectorMap();
    });
    

    http://jvectormap.com/tutorials/getting-started/

    【讨论】:

      猜你喜欢
      • 2019-01-10
      • 2011-05-12
      • 1970-01-01
      • 1970-01-01
      • 2011-09-25
      • 2011-02-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多