JQuery的append()的限制 [英] Limit of JQuery's append()

查看:95
本文介绍了JQuery的append()的限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的数据库包含大量记录.我想在JQuery的append()的帮助下使用Twitter,例如分页.

My database contains huge records. I wants to use twitter like pagination with the help of JQuery's append().

JQuery的append()是否有任何限制?

Is any limit available for JQuery's append()?

推荐答案

您很少有机会担心最大附加限制(请参阅Nick的答案).速度是一个更大的问题.

There's a small chance you need to worry about maximum append limits (see Nick's answer). Speed is a larger concern.

我曾经问过一个关于添加元素的速度的问题,并最终自己对其进行了测试. 请参阅本主题以进行速度测试 .如您所见,.innerHTML.append()快得多.

I once asked a question about speed of adding elements and eventually tested it myself. See this topic for speed tests. As you can see, .innerHTML is much faster than .append().

这篇关于JQuery的append()的限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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