asp.net中如何解析这两条路径。 为什么这两个给出不同的路径。我们什么时候需要去这些。asp.net中样式表路径中的斜线(/)与代字号斜杠(〜/)
<link href="/common/black_theme/css/style.css" rel="stylesheet"> (this is working)
<link href="~/common/black_theme/css/style.css" rel="stylesheet"> (this is not working)
按我的知识〜代表的应用 “通用”根目录是在IIS
物理路径= D:\Physicalpath\WarpFirstSite\testsite.demo
共同文件夹位置下的网站(名为testsite.demo)的根文件夹 - D:\Physicalpath\WarpFirstSite\testsite.demo\common
你可以解释更多 –
@Kyasa - 你需要解释什么? – Oded
我对申请路径感到困惑。网站http://example.com映射到的是物理路径吗? –