且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在MVC剃须刀中实现if else

更新时间:2023-02-14 17:41:11

Razor是服务器端的html渲染引擎。因此,在将页面发送到用户的Web浏览器之前。



如果您想在客户端进行更改,在浏览器中加载页面后,您将需要使用javascript / jquery / etc ...
Razor is a server-side html rendering engine. So before the page is sent to the user's web browser.

If you want to make changes client-side, after the page is loaded in the browser, then you will need to use javascript/jquery/etc...