后台传个变量,前台页面显示对应的中文

public static string B(string num)
{
string str = string.Empty;
switch (num)
{
case "01":
s = "中文1";
break;
case "02":
s = "中文2";
break;
case "03":
s = "中文3";
break;
case "04":
s = "中文4";
break;
case "05":
s = "中文5";
break;

}
return str ;
}

原文地址:https://www.cnblogs.com/zhanbicheng/p/6699838.html