jQuery数据表 - fnGetNodes()和fnGetData()之间的区别? [英] jQuery datatables - difference between fnGetNodes() and fnGetData()?

查看:1130
本文介绍了jQuery数据表 - fnGetNodes()和fnGetData()之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道这两个电话之间的区别是什么? fnGetNodes()返回所有行,fnGetData()也是如此。有什么区别呢?

I was wondering what the difference is between these two calls? fnGetNodes() returns all rows and so does fnGetData(). What is the difference then?

推荐答案

fnGetNodes()返回一个列表 tr 已生成的元素。如果您使用 deferRender:true fnGetNodes()将只返回已访问过的网页中的行。

fnGetNodes() returns a list of tr elements that have been generated. If you are using deferRender: true fnGetNodes() will only return rows from pages that have been visited.

fnGetData()另一方面返回包含所有行的对象数组 aoData 数据(但不是tr元素)。

fnGetData() on the other hand returns the array of objects aoData that contains all rows of data (but not the tr elements).

这篇关于jQuery数据表 - fnGetNodes()和fnGetData()之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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