复制代码 代码如下:
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"%>" />
查看更多关于c#网站WebConfig中域名引用示例介绍的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did28518