You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<desc>A selector representing selector originally passed to jQuery().</desc>
5944
+
<desc>传给jQuery()的原始选择器。</desc>
5945
5945
<signature/>
5946
5946
<longdesc>
5947
-
<p>Should be used in conjunction with context to determine the exact query used.</p>
5948
-
<p>The <code>.live()</code> method for binding event handlers uses this property to determine how to perform its searches. Plug-ins which perform similar tasks may also find the property useful. This property contains a string representing the matched set of elements, but if DOM traversal methods have been called on the object, the string may not be a valid jQuery selector expression. For this reason, the value of <code>.selector</code> is generally most useful immediately following the original creation of the object. Consequently, the <code>.live()</code> method should only be used in this scenario. </p>
5947
+
<p>应当与context一起使用,用于精确检测选择器查询情况。</p>
5948
+
<p><code>.live()</code> 方法在绑定事件处理函数时,使用这个属性来确定如何重现他的搜索过程。需要实现类似功能的插件就很可能需要使用这个属性。 这个属性包含一个字符串,他代表了匹配的元素集合,但是如果 DOM 遍历方法调用过之后,这个字符串就可能不再是一个有效的 jQuery 选择器表达式了。基于这个原因,<code>.selector</code> 的值应当在创建对象的代码后面马上使用。因此,<code>.live()</code> 方法也应当在创建对象后马上使用。</p>
5949
5949
</longdesc>
5950
5950
<example>
5951
-
<desc>Determine the selector used.</desc>
5951
+
<desc>检测使用的选择器。</desc>
5952
5952
</example>
5953
5953
<example>
5954
-
<desc>Collecting elements differently</desc>
5954
+
<desc>不同的方式收集元素</desc>
5955
5955
</example>
5956
5956
</entry>
5957
5957
<entry type="method" name="add">
@@ -6017,15 +6017,14 @@ Using an HTML snippet as the <code>.add()</code> method's argument (as in the th
6017
6017
</example>
6018
6018
</entry>
6019
6019
<entry type="property" name="context">
6020
-
<desc>The DOM node context originally passed to jQuery(); if none was passed then context will likely be the document.</desc>
<p>The <code>.live()</code> method for binding event handlers uses this property to determine the root element to use for its event delegation needs. Plug-ins which perform similar tasks may also find the property useful.</p>
6024
-
<p>
6025
-
The value of this property is typically equal to document, as this is the default context for jQuery objects if none is supplied. The context may differ if, for example, the object was created by searching within an <code><iframe></code> or XML document.</p>
0 commit comments