我正在使用Footable插件。它在控制台中显示错误:“TypeError:无法读取未定义的属性'排序'”。
我使用了以下步骤,
在 GemFile 中添加了 gem 'footable-rails'
在 Application.css 中:
*= require_self *= require datepicker *= require datetimepicker *= require dataTables/jquery.dataTables.bootstrap *= require DT_bootstrap *= require bootstrap-wysihtml5 *= require jquery.ui.datepicker *= require jquery.timepicker *= require footable-rails *= require_tree .
应用程序.js:
//= require jquery //= require jquery_ujs //= require jquery.ui.datepicker //= require twitter/bootstrap //= require bootstrap-datepicker //= require bootstrap-datetimepicker //= require dataTables/jquery.dataTables //= require dataTables/jquery.dataTables.bootstrap //= require jquery.timepicker.js //= require rails.validations //= require rails.validations.custom //= require rails.validations.simple_form //= require bootstrap-wysihtml5 //= require highcharts //= require exporting //= require footable-rails //= require_tree .
我究竟做错了什么?