Internet explorer IE使用矩在jquery数据表中显示时间跨度

Internet explorer IE使用矩在jquery数据表中显示时间跨度,internet-explorer,datatables,momentjs,timespan,Internet Explorer,Datatables,Momentjs,Timespan,我已经让它在firefox中运行,但在IE9-11或chrome中运行它只是错误声明 “SCRIPT438:对象不支持属性或方法'replace' 文件:moment.min.js,行:6,列:4546“ 下面是列代码 { data: "CallTime", title: "Time", classname: "CallTime", render: function (data) { return moment(data, String).format('H

我已经让它在firefox中运行,但在IE9-11或chrome中运行它只是错误声明

“SCRIPT438:对象不支持属性或方法'replace' 文件:moment.min.js,行:6,列:4546“

下面是列代码

{
   data: "CallTime",
   title: "Time",
   classname: "CallTime",
   render: function (data) {
       return moment(data, String).format('HH:mm');
   }
},
我正在使用DataTables 1.10.4和moment 2.10.3,但不知道唯一的解决方案是否是将字段更改为datetime并格式化时间的显示/输入


我也尝试过只执行“返回时刻(数据)。格式化('HH:mm');”,但这只是显示“无效日期”。

除了将输出切换为DateTime外,找不到任何其他方法使其工作。今天+调用时间,然后将DateTime格式化为仅显示时间

现在我需要弄清楚为什么搜索既不能处理日期字段,也不能处理时间字段