int a1 = 1;
int a2 = 2;
string resStr="Init";
if (a1 < a2)
{
goto bb;
resStr="aa";
}
resStr = "kk";
bb:;
Response.Write(resStr);
输出结果:Init
int a1 = 1;
int a2 = 2;
string resStr="Init";
if (a1 < a2)
{
goto bb;
resStr="aa";
}
resStr = "kk";
bb:;
Response.Write(resStr);
输出结果:Init
转载于:https://www.cnblogs.com/lmjob/archive/2009/06/25/1510732.html