Cemous

关于netcore中select属性option根据条件选定

问题描述:有之前mvc项目中的文件转移到netcore中时,select标签报错:The tag helper 'option' must not have C# in the element's attribute declaration area.

解决方法:<option selected="@(条件)">

说明:条件周围的引号需要加上


评论