Javascript Datatables未捕获类型错误

Javascript Datatables未捕获类型错误,javascript,jquery,html,datatables,Javascript,Jquery,Html,Datatables,我使用Datatables和GridRowCount()来获取html表中指定组的行数,JFIDLE站点是。当我运行代码时,chrome浏览器会抛出一个未捕获类型错误(…)。live不是一个函数 将显示控制台中的错误 rowtoggle.js:30未捕获类型错误:$(…)。live不是函数 rowtoggle.js:30未捕获类型错误:$(…).live不是函数GridRowCount@rowtoggle.js:30(匿名函数)@rowtoggle.js:16i@jquery-1.12.2.

我使用Datatables和GridRowCount()来获取html表中指定组的行数,JFIDLE站点是。当我运行代码时,chrome浏览器会抛出一个未捕获类型错误(…)。live不是一个函数


将显示控制台中的错误

rowtoggle.js:30未捕获类型错误:$(…)。live不是函数
rowtoggle.js:30未捕获类型错误:$(…).live不是函数GridRowCount@rowtoggle.js:30(匿名函数)@rowtoggle.js:16i@jquery-1.12.2.min.js:2j.fireWith@jquery-1.12.2.min.js:2n.extend.ready@jquery-1.12.2.min.js:2K@jquery-1.12.2.min.js:2
导航到http://localhost/datacentre/admin/request_pending.php
rowtoggle.js:30未捕获类型错误:$(…).live不是函数GridRowCount@rowtoggle.js:30(匿名函数)@rowtoggle.js:16i@jquery-1.12.2.min.js:2j.fireWith@jquery-1.12.2.min.js:2n.extend.ready@jquery-1.12.2.min.js:2K@jquery-1.12.2.min.js:2
导航到http://localhost/datacentre/admin/request_pending.php
.live()
在jQuery 1.7中已被弃用,并在版本1.9中被删除。你应该使用

.live()
在jQuery 1.7中已被弃用,并在1.9版中被删除。你应该使用

$('.expandedOrCollapsedGroup').on('click', function () {
//Your code
})