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.
这可能是一个超级简单的问题,但事实并非如此。我想知道如何在字符串中只放一个 " 示例
Dim eg as String eg = ""W"
它似乎不起作用。是否有任何特殊字符,因为我需要为我的 VB 添加代码隐藏。
如果是 Visual Basic,你还需要一个":
"
Dim eg as String eg = """W"
如果是 C#,请使用 \ 转义字符:"\"W"
"\"W"
http://msdn.microsoft.com/en-us/library/267k4fw5.aspx
只需加倍: