阅读背景:

MVC 4数据标注“显示”属性

来源:互联网 

I am starting out with MVC 4 (Razor view engine). (I believe this may apply to MVC 3 and earlier as well.) I am wondering if there is any benefit to using the DisplayAttribute data annotation within a view versus just writing a string directly in the HTML. For example, if I had the following model:I am starting out with MVC 4 (Razor view engine




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: