1
所以我使用数据表和他们的moment.js插件(https://datatables.net/plug-ins/dataRender/datetime)。我总是得到(字符串)“无效日期”返回...如何用Datatables和moment.js解析这个时间字符串?
{ "data": "last_updated", //source: 2016-11-02 10:32pm GMT
render: $.fn.dataTable.render.moment('YY-MM-DD hh:mmtt GMT', 'DD MMM YY')
}
谢谢!
什么是“无效日期”? –
哦对不起:我得到的回报是:“日期无效” - 当js无法分析输入时,它是默认输出。 –
您输入的内容可能不是您期望的内容 –