自然,jQuery提供了几种遍历搜索结果的方法。
Not surprisingly, jQuery offers several ways of traversing over the results of these searches.
该方法利用FFT运算代替循环频率遍历搜索。
The method USES FFT instead of the cyclic frequency scanning.
文章也谈到了如何遍历搜索结果,使您可以逐个地处理元素。
The article also showed you how to navigate through the results from these searches, letting you take actions on the elements individually.
If it was an unordered list, we were basically stuck with linear search. Got to walk through the whole list to see if the thing is there.
如果是一个未排序的列表,基本上我们就只能使用线性搜索了,通过遍历整个列表来查看。
Well let's see. My fall back is, I could just do linear search, walk down the list one at a time, just comparing those things. OK. So that's sort of my base. But what if I wanted, you know, how do I want to get to that sorted list? All right?
我只能做线性搜索了,一次遍历一遍列表,一个一个比较,但如果我想要,那怎样得到有序的列表呢?,现在的一个问题是,我们排序之前?
应用推荐