???单击复选框后@Model.checkItem的值应能更新,但确不能???
2条回答 默认 最新
- threenewbee 2016-03-06 11:36关注
在服务器上 ActionResult 你的方法(FormCollection fc) { fc["checkItem"] } 或者 ActionResult 你的方法(你的模型 model) { UpdateModel(); //这个不写不会更新 model.checkItem }
解决 无用评论 打赏 举报
???单击复选框后@Model.checkItem的值应能更新,但确不能???
在服务器上
ActionResult 你的方法(FormCollection fc)
{
fc["checkItem"]
}
或者
ActionResult 你的方法(你的模型 model)
{
UpdateModel(); //这个不写不会更新
model.checkItem
}