Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我看来,
id = "结果@result"
呈现的 html 是
id="Result 123"
但是如何在没有空格的情况下获得 id
id = "Result123"
你可以做:
id = "Result@(result)"
有关更多有用示例,请参阅此C# Razor 语法快速参考。