使用客户端技术(即 Javascript)仅显示表格的一部分

发布于 2024-10-03 08:04:15 字数 185 浏览 0 评论 0原文

加载网页时,会加载一个大约 50 行 288 列的表格,但只显示大约 5 行 25 列。我们正在尝试实现行和列的导航,按下仅向上移动 2 行并显示 2 个新行,或者向右移动显示 12 个新列并隐藏最左边的 12 个。

我们总是希望显示标题和第一列,但其余的,我们希望能够使用客户端代码来控制客户端看到的内容。

有什么想法吗?

When the webpage is loaded, a table with roughly 50 rows and 288 columns is loaded, but only about 5 rows and 25 columns are shown. We are trying to implement navigation of the rows and columns, pressing down moves up only 2 rows and show 2 new rows, or moving right shows 12 new columns and hides the 12 left most.

We always want to show the headers and the first column, but the rest, we want to be able to control what the client sees using client-side code to do so.

Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

街角迷惘 2024-10-10 08:04:15

听起来你需要一个数据表 Javascript 小部件。有很多可用的,包括商业的和开源的。

我喜欢并使用 YUI 数据表 优秀的文档和社区。

Sounds like you need a datatable Javascript widget. There are many available, both commercial and open source.

I like and use the YUI datatable Excellent documentation and community.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文