62,073
社区成员
发帖
与我相关
我的任务
分享
public int mianbao;//或者用protected修饰符
前端<%=mianbao%>
protected int mianbao = 0;
protected void Page_Load(object sender, EventArgs e)
{
mianbao=model1.hit;
}
<%= mianbao%>
protected int mianbao
{
get;set;
}
声明为类内部的属性或者字段