I have a script file .
<script src="~/Scripts/angular.js"></script>
See the path is ~/Script
. But if I Entered ../../
instead of ~/
,Also the process are working same .
My website URL like : https://sample.com/Scripts/angular.js
If I entered ../../
in before Scripts
,then it's automatically change previous URL(https://sample.com/Scripts/angular.js)
.
What is the url process ? And how can its automatically changed? and please tell about the Different between ./, ../ , ../../ , ~/ ,/Scripts ,Scripts
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…