<分区>
我有 baseUrl = "http://localhost:10232";
我在我看来是这样使用它的:
<a href='@mynamespace.Controllers.MyVars.baseUrl/Tickets/Create'>Create New</a>
它给了我很好的输出即
<a href='http://localhost:10232/Tickets/Create'>Create New</a>
但是如果我在我的 url 末尾添加 /
像 http://localhost:10232/
那么有没有办法产生和上面一样的结果呢?我按照以下方式尝试了
<a href='@mynamespace.Controllers.MyVars.baseUrl+Tickets/Create'>Create New</a>
但是连接在 html 中不起作用,所以我该如何实现它(用 html 字符串连接一个 c# 变量)