Session

在js中使用Razor (@)

电脑版发表于:2021/4/22 11:24

MVC @后的后台代码可以直接使用html 但是不能直接使用js


使用<text>这个伪元素来强制Razor从编译模式返回到内容模式:




关于TNBLOG
TNBLOG,技术分享。技术交流:群号677373950
ICP备案 :渝ICP备18016597号-1
App store Android
精彩评论
{{item.replyName}}
{{item.content}}
{{item.time}}
{{subpj.replyName}}
@{{subpj.beReplyName}}{{subpj.content}}
{{subpj.time}}
猜你喜欢