rowList: [@{
for(int i=0; i<Model.RowList.Count; i++)
{
@Model.RowList[i]
if(i != Model.RowList.Count - 1)
{ @:,
}
}
}],在浏览器页面中显示的结果是
rowList: [10 ,
20 ,
30],
但是我想要的是 rowList:[10,20,30]
那回车怎么去掉?
for(int i=0; i<Model.RowList.Count; i++)
{
@Model.RowList[i]
if(i != Model.RowList.Count - 1)
{ @:,
}
}
}],在浏览器页面中显示的结果是
rowList: [10 ,
20 ,
30],
但是我想要的是 rowList:[10,20,30]
那回车怎么去掉?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货