jquery datatables FixedColumns未定义 [英] jquery datatables FixedColumns not defined

查看:220
本文介绍了jquery datatables FixedColumns未定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正尝试使用 jquery datatables插件,然后按照 FixedColumns示例
但是我收到错误错误:ReferenceError:FixedColumns未定义行:64 。我试图让最左边的列固定,当你水平滚动你仍然可以看到第一列。

I'm attempting to use the jquery datatables plugin and following the FixedColumns example but I'm getting the error Error: ReferenceError: FixedColumns is not defined Line: 64. I'm trying to make the leftmost column fixed so while you scroll horizontally you can still see the first column.

我已经设置了一个在jsbin中的示例显示错误。 FixedColumns是一个单独的插件来下载?我找不到它,如果是。任何人能够解释为什么我的代码不工作?

I have set up an example in jsbin that shows the error. Is FixedColumns a separate plugin to download? I couldn't find it if it is. Anyone able to explain why my code isn't working?

推荐答案

FixedColumns插件需要一些更新,浏览器控制台当前报告

That FixedColumns plugin needs some update, browser console currently reports

TypeError:$ .browser is undefined @ http:// www .datatables.net / release-datatables / extras / FixedColumns / media / js / FixedColumns.js:99 ;

$。从jQuery 1.9,所以你可以使用jQuery 1.8.3代替: http://jsbin.com/uziwin/ 4 / edit

$.browser was removed from jQuery 1.9, so you can either use jQuery 1.8.3 instead: http://jsbin.com/uziwin/4/edit

将浏览器检测添加到jQuery 1.9+ 以及一些其他插件: https:// github。 com / mattberg / jquery-browser ; http://jsbin.com/uziwin/11/edit

or add the browser detection back to jQuery 1.9+ with some additional plugin: https://github.com/mattberg/jquery-browser ; http://jsbin.com/uziwin/11/edit

这篇关于jquery datatables FixedColumns未定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆