Home > Net >  MVC5 script reference and need to use @ Url. The Content
MVC5 script reference and need to use @ Url. The Content

Time:09-21

<script SRC="https://bbs.csdn.net/topics/.content (" ~/Scripts/bootstrap. Min. Js") "type=" text/javascript "& gt; </script> Can be directly removed @ Url. The Content? Written like this: & lt; Script SRC="https://bbs.csdn.net/topics/~/Scripts/bootstrap.min.js" type="text/javascript" & gt; </script>

CodePudding user response:

<script SRC="https://bbs.csdn.net/topics/~/Scripts/bootstrap.min.js"
This may path problems,
https://cloud.tencent.com/developer/ask/49831

CodePudding user response:

I've always been a hard coding, because looking at pleasing to the eye

CodePudding user response:

The ~/is also a relative path, don't know why also suggested using the @ Url. The Content, always don't understand

CodePudding user response:

Can be written as the second, but the first one is the MVC way
  • Related