本文介绍了JavaScript Collections API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我搜索了一段时间的Collections API(列表,集合)JS,令人惊讶的是,我只能这样:
I've searched quite a while for a Collections API (list, set) for JS and surprisingly I could only this: http://www.coffeeblack.org/work/jscollections/
这正是我要找的,但我想知道为什么不jQuery提供了吗?我缺少什么?
This is exactly what I was looking for, but I'm wondering why doesn't jQuery provide that? What am I missing on? Or, perhaps, how ineffective are my searching techniques?
我知道数组支持pop()和push(),但我需要contains()例如。 p>
I know that arrays support pop() and push(), but I need contains() for example.
推荐答案
您可以尝试,用于JavaScript的集合库。
You can try js_cols, a collections library for JavaScript.
这篇关于JavaScript Collections API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!