在javascript 中实现遍历:

for (variable in object)

{

具体代码略;

}

在C#中实现遍历:

foreach(variable in object)

{

具体代码略;

}