uTools-Manuals/docs/jQuery/selector.html
2019-04-21 11:50:48 +08:00

23 lines
2.2 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<article class="" id="post-">
<header class="entry-header">
<h1 class="entry-title">.selector</h1>
<div class="entry-meta">
所属分类:<span class="category"><a href="/category/internals/">内部函数</a></span><span class="category-divider"> | </span><span class="category"><a href="/category/properties/">内部属性</a> &gt; <a href="/category/properties/jquery-object-instance-properties/">jQuery 对象实例的属性</a></span><span class="category-divider"> | </span><span class="category"><a href="/category/deprecated/">弃用</a> &gt; <a href="/category/deprecated/deprecated-1.7/">1.7 版本弃用的 API</a></span><span class="category-divider"> | </span><span class="category"><a href="/category/removed/">已删除的函数</a></span>
<span class="pull-right">英文文档:<a href="https://api.jquery123.com/selector/" target="_blank">.selector</a></span>
</div><!-- .entry-meta -->
</header><!-- .entry-header -->
<!-- .entry-header -->
<div class="entry-content">
<article class="entry property" id="selector1"><h2 class="section-title">
<span>selector</span><span class="returns">返回: <a href="/Types/#String">String</a></span><span class="version-details">version removed: <a href="/category/version/1.9/">1.9</a></span>
</h2>
<div class="entry-wrapper">
<p class="desc"><strong>描述: </strong>返回传给jQuery()的原始选择器。</p>
<ul class="signatures"><li class="signature"><h4 class="name">
<span class="version-details">添加的版本: <a href="/category/version/1.3/">1.3</a></span>selector</h4></li></ul>
<div class="longdesc" id="entry-longdesc">
<p>应使用与上下文结合,以确定准确的查询使用。</p>
<p><code>.live()</code>方法绑定事件处理器使用此属性来确定根元素使用其事件委派的需要。插件能执行类似的任务也可以找到有用的属性。 此属性包含一个字符串,表示匹配的元素,如果在对象上已调用DOM遍历方法这个字符串可能不是一个有效的jQuery选择器的表达。出于这个原因<code>.selector</code>值一般最有用的是紧随原始创作对象。因此, <code>.live()</code>方法只应该在这个方案中使用。 </p>
</div>
</div></article> </div>
</article>