RexHo

Results 5 comments of RexHo

样本已发至邮箱 发自我的iPhone > 在 2021年4月28日,12:12,wangguanquan ***@***.***> 写道: > >  > ***@***.*** > > — > You are receiving this because you authored the thread. > Reply to this email...

是否可通过 CellType.DOUBLE.equals(row.getCellType(i)) 来判断 Cell类型 从而确定是否可以使用row.getDecimal(12) 或 row.getDouble(12)来获取数据?

我现在就是用row.getString(i),获取出来有时候就会是科学计数法。业务上因为模板的每列数据类型不是固定的 ,可能有的模板数字在第10列,有的模板在第11列,所以不太好判断哪列可以使用获取getDouble()或者getDecimal(),所以我的想法就是能不能确定了格子的数据格式 然后直接使用对应的方法。

![image](https://user-images.githubusercontent.com/11851142/132166585-1dad95c3-deb5-4bec-a53c-ad7bd79d7b79.png) 刚测试了一下,CellType 这个枚举类里面的类型都有

> > Adding viewport height to the body resolved my issue > > ``` > > body { > > height:100vh; > > } > > ``` > > Thank...