在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\"%>\" />
本文地址:https://www.stayed.cn/item/11331
转载请注明出处。
本站部分内容来源于网络,如侵犯到您的权益,请 联系我