The meaning of "~" in ASP.NET

xiaoxiao2021-03-06  42

"~" Means the current virtual directory

Such as: a virtual directory ABC / ABC

In ABC, you need to represent the AA file in the DEF directory under ABC.

It can be represented like this:

~ / DEF / AA

Files containing the above code are stored in the ABC directory.

If there is no "~", become / def / aa

Then it is a AA file in the Def directory under the root directory.

转载请注明原文地址:https://www.9cbs.com/read-55704.html

New Post(0)