问题很简单,页面写成这样
<table id="EducationTable">
<thead>
<tr>
<th data-radio="true"></th>
<th data-field="sort">排序</th>
<th data-field="description">选项描述</th>
<th data-field="isCorrect">是否是正确答案</th>
</tr>
</thead>
扫描二维码关注公众号,回复:
167914 查看本文章
</table>
【是否是正确答案】 的 isCorrect 无法显示
检查
(1)数据库有数据,字段能保存
(2)showBean 和 object 和editBean 都有isCorrect字段
(3)查的时候一脸懵逼why??为什么列表不显示??
大神驾到“我也不知道什么原因”
在我尿遁回来以后,他指着数据库表“这个是char(2),其他能正常显示的是char(1)”
“有什么关系吗?”
“不知道,试一下吧”
结果试完,把这个字段的数据类型改成char(1)之后,正常显示了。
“大哥”作了个揖“厉害了厉害了[抱拳]”
“你怎么想到的?”
“不知道,就拿能正确显示的做个了对比”
对比出真知