zoukankan      html  css  js  c++  java
  • angular1.几框架新接口添加

    1、Web.config里添加

    <!--客户中心-->
    <add key="CustomerUrl" value="//customercenter.lunztech.cn/" />
    <add key="CustomerAppKey" value="cc9065db-9b87-43b9-9917-0c4b5b4fc9d3" />

    2、Foot.cshtml里添加

    var CustomerUrl = '@System.Configuration.ConfigurationManager.AppSettings["CustomerUrl"]';
    var CustomerAppKey = '@System.Configuration.ConfigurationManager.AppSettings["CustomerAppKey"]';

    @*客户中心*@
    <script src="@System.Configuration.ConfigurationManager.AppSettings["CustomerUrl"]sdk/api.js" type="text/javascript"></script>
    <script src="@System.Configuration.ConfigurationManager.AppSettings["CustomerUrl"]sdk/api.CustStore.js" type="text/javascript"></script>

    3、app.js里添加

  • 相关阅读:
    Java——泛型、异常
    接口
    Classes
    Unit Tests
    Boundaries
    Error Handling
    Objects and Data Structures
    DB other operation
    Comments
    Functions
  • 原文地址:https://www.cnblogs.com/cacti/p/7675786.html
Copyright © 2011-2022 走看看