安装这个插件。文件说:
* Disabled by default, to enable add the following section to the footable
* options:
*
* $('#table').footable({
* memory: {
* enabled: true
* }
* });这一节到底在哪里编辑这段代码来启用?我已经浏览了所有的存储库和文档,我仍然没有任何线索。
如果有人能指点它的去向,这应该很简单.
谢谢!
发布于 2015-02-01 20:25:39
您必须使用$('#your-table-id')选择您的表,并向其添加用于您问题中所示代码的可引脚插件。
应该在结束bode标记之前添加代码,如下所示:
<script type="text/javascript">
$(document).ready(function(){
$('#your-table-id').footable({
memory: {
enabled: true
}
});
});
</script>我假设您已经将jQuery框架和插件包括在您的页面中了。
https://stackoverflow.com/questions/28267395
复制相似问题