为什么不能在View中使用静态类中的静态变量?例如,假设您有一个设置类:publicstaticclassGlobalVariables{publicstaticstringSystemColor{get{returnProperties.Settings.Default.SystemColor;}}}为什么不能在View中调用它?像这样@usingAppName.ModelsSystemColor 最佳答案 据我所知,您可以从ASP.NETMVC的View内部访问静态变量,如果您使用适当的使用声明:@usingWhateverNa