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里添加

 

posted @ 2017-10-16 10:27  cacti_vc  阅读(233)  评论(0编辑  收藏  举报