我正在尝试在我的索引视图中创建一个固定的标题表。搞了2天,终于找到了jQueryfixedheadertable
插件,还是不能用。我想我做错了什么,因为这是我第一次使用 jQuery。这就是我所做的:
将文件添加jquery.fixedheadertable.js
到\app\assets\javascripts
在application.js
:
//= require jquery
//= require jquery-ui
//= require jquery_ujs
//= require jquery.fixedheadertable
..
..
在my_js_coffee_file
:
$ ->
$("#id_of_my_index_table").fixheadertable({
caption : 'My header is fixed !',
height : 200
});
也试过:
$ ->
$('#id_of_my_index_table').fixedHeaderTable('show');
一点变化都没有……这里有什么问题?
谢谢。