bootstrap table 报错 Uncaught TypeError: Cannot read property 'colspan' of undefined

问题:

columns:[{
       field:'RN',
       title:'序号'
     },,{
      title:"操作",
      formatter:function(value,row,index){
                         return "<i class='fa fa-pencil' style='cursor:pointer' οnclick='showUpdateHelpMeasures(\""+tableName+"\","+row.PKID+")'></i>&nbsp;&nbsp;<i class='fa fa-close' style='cursor:pointer;color:red' οnclick='deleteHelpMeasures(\""+tableName+"\","+row.PKID+")'></i>"
    }
    }].concat(tableTitle[tableName])

bootstrap table 报错 Uncaught TypeError: Cannot read property 'colspan' of undefined

解决方案:

bootstrap table 报错 Uncaught TypeError: Cannot read property 'colspan' of undefined

多写了一个逗号,把逗号删掉就好了。很神奇