MVC 3 Razor Syntax for straight text output?

后端 未结 3 1763
北荒
北荒 2021-02-06 20:33

Using Razor how/can you write straight text with out wrapping it in some type of html tag?

Example (This works but adds extra span tags):

@{ var foo = tr         


        
3条回答
  •  别跟我提以往
    2021-02-06 21:02

    A point worth to be noted here:

    @: can be used only inside an @

    (in case any body like me is wondering why @: does not work!)

提交回复
热议问题