Now, let's move on to optimizing search elements in the list-that is, the find method. Here are a few potential situations that may occur.
现在,我们来优化链表中的搜索元素—即find方法。
You should generally avoid such an index unless your application is mostly read-only and you really cannot predict which elements will be used in search conditions.
一般情况下,应该避免使用此类索引,除非应用程序大部分是只读的,并且确实无法预测在搜索条件中使用哪些元素。
For each author found, the code then has to search back up the tree for all the book elements with that particular author name embedded in them.
对于发现的每个作者,代码必须接着反过来到树上全面搜索以获取嵌入特定作者姓名的所有书籍元素。
You can often narrow the search results by specifying a path of elements; the results will be matching nodes from the end of the path (see Listing 4).
通常可以通过指定元素路径来缩小搜索结果;结果将是自路径末尾的匹配节点(参见清单4)。
This is important, because the first thing the code does is search through the page for swappable elements.
这一点很重要,因为此代码的第一项功能就是在整个页面内搜索可切换的元素。
The outermost element also encloses one or more elements, each representing a result item matching the search query.
最外层的元素也包含一个或多个元素,分别代表一个匹配搜索查询的结果条目。
What about limiting text search to specific XML elements or XML attributes?
那么,怎么将文本搜索限制到特定的XML元素或 XML 属性上呢?
With the number of forms, search functions and other navigational elements on websites these days, using them can occasionally become confusing for some users.
现在,由于网站上搜索功能和其他导航元素有很多种具体形式,用户使用时偶尔会感到困惑。
Paid search offers the ability to control your visibility, messaging, and customer interaction-all key elements in brand building.
付费搜索能让你控制你的能见度、信息传递和与顾客互动,这都是品牌建设的关键元素。
Subsequent query examples search in specific elements of these XML documents.
后面的查询示例搜索这些XML文档的特定元素。
Now that you've learned how to search and filter all of the elements on a page, you need an efficient way to traverse over the results and take actions on these elements.
现在,您已经学会如何搜索和过滤页面上的所有元素,接下来需要一种高效的方法来遍历结果,进一步处理元素。
A painter can position the elements where they want, whereas a photographer must search, find and organize visual elements within the camera viewfinder.
画家可以随心所欲布置各个要素,而摄影师必须在相机的取景器中寻找、发现和组织视觉要素。
The expression limits the number of branches that the database has to search to find the relevant elements.
这个表达式限制了数据库找到相关结果所必须搜索的分支的数量。
Figure 1 shows an example of an EMF model created for the DB2 trace file elements that you need to search for a resource leak.
图1显示了为DB 2跟踪文件元素创建的emf模型的一个示例,它可以帮助发现资源泄漏。
Two of the elements are empty containers to be used as loading points for the returned XML from the search engines.
其中两个元素是空容器,用作搜索引擎返回的XML 的加载点。
PHP provides functions to find matches in text, to replace each match with other text (a la search and replace), and to find matches among the elements of a list. The functions are.
PHP提供了用于在文本中查找匹配、将每个匹配替换为其他文本(la搜索和替换)以及在列表的元素之中查找匹配的函数。
Limit text search to XML elements or attributes.
将文本搜索限制到XML元素或属性上。
Why not generate the Web presentation layer to create, add, list, delete, and search these elements from the annotated beans?
为什么不生成一个 Web表示层,让它根据带注解的 bean创建、添加、列出、删除和搜索这些元素呢?
I use the data returned from the FreeDB search to make an anonymous hash with the appropriate elements.
我使用从FreeDB搜索中返回的数据来生成带有适当元素的匿名散列。
Text search: Find fixes within fix Central by entering keywords, error messages, exceptions, and other elements.
文本搜索:通过输入关键字、错误消息、异常和其他元素在FixCentral中查找修复。
Similarly, in the Search TAB of the Select element dialog, elements from closed models are returned in the list of matches.
类似地,在SelectElement对话框的Search标签页中,来自封闭模型中的元素又重新回到它们相匹配的列表中。
Limiting search to XML elements.
将搜索限制到XML元素上。
Perhaps most powerful is the find function, which allows you to use a jQuery selector to search through the descendants of elements in your jQuery object.
find函数或许是功能最强大的函数,它允许使用jQuery选择器搜索jQuery对象中元素的后代元素。
To get an array of all the matching HTML elements in a page, you can simply pass the HTML tag itself, without the braces, into the jQuery search field.
要获取一个页面中所有匹配的HTML元素的数组,您仅需将HTML标记(不带括号)传递到jQuery搜索字段。
While those are certainly the three most commonly used search parameters in jQuery, there are many others that can help you quickly find the elements you are looking for on a page.
虽然在jQuery中,这3个搜索参数无疑是最常用的,但还有许多其他搜索参数,可以帮助您在一个页面上快速查找所需的元素。
Two common search techniques used in jQuery code are to search through elements by their ID and to search through elements by their CLASS.
在jQuery代码中两种常见的搜索技术是通过元素的ID进行搜索和通过元素的CLASS进行搜索。
JQuery gives you so many possible ways to search for page elements that sometimes it can be staggering to figure out which one is the best way to find your desired page element.
jQuery提供如此多的页面元素搜索方法,有时您难以指出哪种方法是最好的。
In addition to limiting text search to specific elements or attributes, Net search Extender offers several other features for defining text search criteria.
除了将文本搜索限制到特定的元素或属性之外,NetSearchExtender还提供了几个用来定义文本搜索条件的其他特性。
In DB2 Net search Extender, limiting text search to specific elements or sub-trees of the XML documents is expressed by a fully qualified XPath.
在DB 2NetSearchExtender中,将文本搜索限制到XML文档的特定元素或子树是用一个完全限定的XPath表达的。
For some functionality however (e.g. the "people search") marshalling the data this way didn't seem the right way to go - writing code to dynamically create the GUI elements is just wasteful.
然而,对于某些功能(比如“peoplesearch”)将数据以这样的方式封送处理似乎不是很合适,通过编写代码来动态的创建GUI元素纯粹是浪费。
应用推荐