angularjs 从 json 文件中获取 ng

编程入门 行业动态 更新时间:2024-10-26 20:27:33
本文介绍了angularjs 从 json 文件中获取 ng-repeat 数据的速度非常慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我有一个 json 文件,其中包含大约 8000 个联系人,使用 ng-repeat 使用 angularjs 获取所有数据需要很长时间,有什么解决方法吗?

I have a json file which has about 8000 contacts in it, fetching all that data takes a very long time with angularjs using ng-repeat, is there any fix for this?

推荐答案

在检索如此大的记录时,您不能期望有多大的速度.您可以使用

You cannot expect much speed when retrieving such large records. You can optimize the ng-repeat performance by using

跟踪BindOnce无限滚动

这些东西会在一定程度上提高性能.

These things will improve the performance to an extent.

这篇关于angularjs 从 json 文件中获取 ng-repeat 数据的速度非常慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-21 18:21:05,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1007568.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件   angularjs   json   ng

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!