使用客户端技术(即 Javascript)仅显示表格的一部分
加载网页时,会加载一个大约 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来你需要一个数据表 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.