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.
我有一个段落@Model.FileName,我想显示前 20 个字符。任何简单的可能解决方案。这里我的意思是substr()PHP 中的函数工作。我想在 .NET 中也一样。
@Model.FileName
substr()
在.net中,它被称为Substring任何字符串都会出现
Substring