|
狀態(tài): 1。IIS的根目錄==>c:\inetpub\wwwroot 2。虛擬目錄"oas"==>F:\hskama\oas 3。在http://localhost/oas/sys/others/mkm.aspx執(zhí)行Response.Write(XXX)
結(jié)果: Server.MapPath(".") F:\hskama\oas\sys\others Server.MapPath("~") F:\hskama\oas Server.MapPath("") F:\hskama\oas\sys\others Server.MapPath("..") F:\hskama\oas\sys Server.MapPath("~/..") c:\inetpub\wwwroot
我覺得這個實驗很有意思,雖然是一些簡單的東西,但是我覺得對于以后項目的開發(fā)會很有意義,甚至覺得這有點類似于寫SQL語句,其精妙之處值得細細體會。所以才把他寫下來。
|