# crazyTableQuery **Repository Path**: seaSpirit/crazyTableQuery ## Basic Information - **Project Name**: crazyTableQuery - **Description**: 在使用layui table中,经常会遇到,需要定位某一行、某一列的单元格,或者定位某一行等等操作。 layui table 提供的 行事件等等不太够用。 我就结合 jQuery ,汇总了如下的方法,供大家参考。 - **Primary Language**: JavaScript - **License**: AFL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 2 - **Created**: 2020-02-15 - **Last Updated**: 2025-04-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # crazyTableQuery ## 介绍 Introduction 在使用layui table中,经常会遇到,需要定位某一行、某一列的单元格,或者定位某一行等等操作。 layui table 提供的 行事件等等不太够用。 因此结合 jQuery ,汇总了如下的方法,供大家参考。 ## 安装 Installation 1. 将1.x 文件夹下的 crazyTableQuery 文件夹,整个拷贝到自己项目扩展插件目录下 ## 申明 Declaration 2. 在table.render 的 done回调中,加载 ```javascript done: function(res, curr, count) { // 在 done 函数中,使用layui.use() 来调用刚才引入的第三方插件 // 这样,既能保证每次table.reload 或 table.render 的时候,正确且有效使用第三方插件, // 也能保证 不会多次引入第三方插件。 let othis = this; layui.use('crazyTableQuery', function () { crazyTableQuery = layui.crazyTableQuery; crazyTableQuery.render(othis, res); }); } ``` ## 框架 Construction ```javascript /** Layui Table 结构 * *
--- main td, getTds(field), getTd(field, index), getTdsValue(field)
* --- getTdCell(td), getTdValue(td)
*
* --- tbFixed()
* --- *** the other header
* --- *** the other body
*
* --- tbTotal()
* |