亲宝软件园·资讯

展开

WebConfig中域名引用 c#网站WebConfig中域名引用示例介绍

人气:0
想了解c#网站WebConfig中域名引用示例介绍的相关内容吗,在本文为您仔细讲解WebConfig中域名引用的相关知识和一些Code实例,欢迎阅读和指正,我们先划重点:WebConfig,域名引用,下面大家一起来学习吧。
在WebConfig中定义如下。
复制代码 代码如下:

public class WebConfig
{
public static string ResourceServer = @"http://www.xxx.com/"; }

在前台页面中这样调用
复制代码 代码如下:

<script src="<% =WebConfig.ResourceServer %>/js/jquery-ui-all-min-lastest.js"
type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="<%=WebConfig.ResourceServer +"/css/style.css"%>" />

加载全部内容

相关教程
猜你喜欢
用户评论