添加到表的最大行数 [英] maximum rows added to table

查看:65
本文介绍了添加到表的最大行数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道你可以使用Javascript动态添加到HTML表格的行数上限是多少?我试图制作一个包含74,000多行的

表,Firefox停止渲染

页面。我没有注意到任何异常被抛出或任何其他

外部指标出现问题,除了页面没有

一直呈现。


如果你碰巧知道是否有一个数字我应该知道

,请回复:)


谢谢。

解决方案

enrique在02 mei 2008上写了comp.lang.javascript


有没有人知道你可以使用Javascript动态添加到HTML表格的行数上限是多少?我试图制作一个包含74,000多行的

表,Firefox停止渲染

页面。我没有注意到任何异常被抛出或任何其他

外部指标出现问题,除了页面没有

一直呈现。


如果你碰巧知道是否有一个数字我应该知道

,请回复:)



该语言没有限制,DOM在不同的浏览器中实现,

可能有,但DOM不是Javascript的一部分。所以答案一般

是无法回答的,对于特定的浏览器,可能会有限制。


我认为限制取决于可用的最大内存集对于那个

目的。


==============


在浏览器中使用74,000行的html表本身是荒谬的。


这不是浏览器的制作地点。其他技术更适合显示这样的数字,无论是视觉用途还是

可滚动性都是空的。


也许您打算使用浏览器制作3000页书?


-

Evertjan。

荷兰。

(请将x''es更改为我的电子邮件地址中的点数)


enrique写道:


有没有人知道你可以使用Javascript动态添加到HTML表格的行数上限是多少?我试图制作一个包含74,000多行的

表,Firefox停止渲染

页面。我没有注意到任何异常被抛出或任何其他

外部指标出现问题,除了页面没有

一直呈现。


如果你碰巧知道是否有一个数字我应该知道

,请回复:)



我不知道任何指定的限制。但是,对于内存大小和可用性,有一个实际的限制。如果你不认识的话,你自己认为一张超过2000行的桌子是无法使用的,那么你就无法获得帮助。

真的无法帮助。

PointedEars

-

现实主义:HTML 4.01严格

福音:XHTML 1.0严格

疯狂: XHTML 1.1 as application / xhtml + xml

- Bjoern Hoehrmann


5月2日下午2:49,Thomas''PointedEars'' Lahn< PointedE ... @ web.de>

写道:


>如果你不认识

你自己一张超过2000行的表是无法使用的,你的确是无法帮助的。



伙计们,请让我们保持讨论友好。


我不打算辩论为什么我想要在

单表中显示74,000行。这对于这个问题的目的并不重要。

我在问这个DOM是否有能力动态添加
行到HTML表格(好像我需要重述

的问题。)


如果你想讨论有关网页可读性和美学的问题/>
可用性,随意在相应的

讨论组中开始一个新主题。


谢谢。


Does anyone know what the upper limit is to the number of rows you can
dynamically add to an HTML table, using Javascript? I tried to make a
table consisting of over 74,000 rows and Firefox stops rendering the
page. I didn''t notice any exceptions being thrown or any other
external indicator that something is wrong, other than the page not
being rendered all the way.

If you happen to know if there is a number to this I should be aware
of, please respond :)

Thanks.

解决方案

enrique wrote on 02 mei 2008 in comp.lang.javascript:

Does anyone know what the upper limit is to the number of rows you can
dynamically add to an HTML table, using Javascript? I tried to make a
table consisting of over 74,000 rows and Firefox stops rendering the
page. I didn''t notice any exceptions being thrown or any other
external indicator that something is wrong, other than the page not
being rendered all the way.

If you happen to know if there is a number to this I should be aware
of, please respond :)

The language has no limit, The DOM, as implemented in different browsers,
might have, but the DOM is not part of Javascript. So the answer in general
is unanswerable, for a specific browser, there might be a limit.

I suppose the limit depends on the maximum memory set available for that
purpose.

==============

Using a html table of 74,000 rows in a browser is nonsensical in itself.

That is not where browser were made for. Other technologies are much more
appropriate for displaying such number, be it that the visual use and the
scrollability is null.

Perhaps you plan to make a 3000 page book using a browser?

--
Evertjan.
The Netherlands.
(Please change the x''es to dots in my emailaddress)


enrique wrote:

Does anyone know what the upper limit is to the number of rows you can
dynamically add to an HTML table, using Javascript? I tried to make a
table consisting of over 74,000 rows and Firefox stops rendering the
page. I didn''t notice any exceptions being thrown or any other
external indicator that something is wrong, other than the page not
being rendered all the way.

If you happen to know if there is a number to this I should be aware
of, please respond :)

I don''t know of any specified limit. However, there is a practical limit of
course, both regarding memory size and usability. If you don''t recognize by
yourself that a table with more than, say, 2000 rows is unusable, you are
really beyond help.
PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann


On May 2, 2:49 pm, Thomas ''PointedEars'' Lahn <PointedE...@web.de>
wrote:

>If you don''t recognize by
yourself that a table with more than, say, 2000 rows is unusable, you are
really beyond help.

Guys, PLEASE let''s keep the discussion friendly.

I didn''t intend to debate why I would want to display 74,000 rows in a
single table. It''s not important for the purposes of this question.
I''m asking if there is a known limitation with the DOM''s ability to
dynamically add rows to an HTML table (as if I needed to restate the
question.)

If you care to discuss the aesthetics about web page readability and
usability, feel free to start a new thread in the appropriate
discussion group.

Thank you.


这篇关于添加到表的最大行数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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