我正在尝试使用DataTables的终极日期插件(http://datatables.net/blog/2014-12-18)。我有两个文件(moment.js 2.8.1和datetime-moment.js插件),它们加载正常,但是当我使用语法时:
$(document).ready(function() {
$.fn.dataTable.moment( 'DD/MM/YYYY' );
$('#example').DataTable();
} );
我收到错误:ReferenceError:没有定义时刻
不知道问题出在哪里......
编辑:
<script src="/js/libs/jquery/jquery-1.11.1.min.js" type="text/javascript"></script>
<script src="/js/libs/jquery-ui/jquery-ui-1.11.1.min.js" type="text/javascript"></script>
<script src="/js/libs/validationEngine/js/languages/jquery.validationEngine-fr.js" type="text/javascript"></script>
<script src="/js/libs/validationEngine/js/jquery.validationEngine.js" type="text/javascript"></script>
<script src="/js/libs/underscore/underscore-1.7.0.min.js" type="text/javascript"></script>
<script src="/js/libs/moment/moment-2.8.1.min.js" type="text/javascript"></script>
<script src="/js/plugins/datatables/js/jquery.dataTables.min.js" type="text/javascript"></script>
<script src="/js/plugins/datatables/js/datetime-moment.js" type="text/javascript"></script>
<script src="/js/libs/highcharts/4.0.4/highcharts.js" type="text/javascript"></script>
<script src="/js/libs/highcharts/4.0.4/highcharts-more.js" type="text/javascript"></script>
<script src="/js/libs/highcharts/4.0.4/modules/exporting.js" type="text/javascript"></script>
<script src="/js/libs/highcharts/4.0.4/modules/no-data-to-display.js" type="text/javascript"></script>