在cshtml页面上写方法
钢翼
编程
@{
Func<string> func = () =>
{
return "123";
};
@func.Invoke()
@{
Func<string> func = () =>
{
return "123";
};
@func.Invoke()