For input String "true"

来源:互联网 发布:php可以开发app吗 编辑:程序博客网 时间:2024/05/16 05:16

For input String "true"


这个错误呢是转换错误,,,有可能是在String转int的时候出现的,

我这里呢是因为主键id返回后台的数据为true,然后我去转它为int

当然会报错的,

我这里呢是我在页面展示列表的时候吧主键设为了:

{field: 'id',checkbox: true},

所以这里改下就好了

{
checkbox: true
},
{field: 'id', title: '类目编号',  align: 'center' },


原创粉丝点击