关于@Html.TextBoxFor 的问题
初级菜鸟 2012-06-11 04:15:04 在项目里遇到这么个情况:
@Html.TextBoxFor(model=>model.XXX, new{ @class="XXX", data_cell="I5" })
@Html.TextBoxFor(model=>model.XXX, new{ @class="XXX", data_cell="J5" })
@Html.TextBoxFor(model=>model.XXX, new{ @class="XXX", data_cell="K5" })
@Html.TextBoxFor(model=>model.XXX, new{ @class="XXX", data_cell="I76", data_formula="I5+J5+K5" })
这里的 data_cell 和 data_formula 是怎么使用的,什么原理?
假如我想在 new{ } 中处理结果,保留几位小数或保留几位有效数字,该怎么做?