Skip to content

Commit 67c3ff5

Browse files
committed
完成插件编写部分
1 parent 78114af commit 67c3ff5

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

build.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ del dist\*.js /q /s
33
del dist\*.png /q /s
44
del dist\*.css /q /s
55
del dist\*.jpg /q /s
6+
del dist\*.gif /q /s
67
xcopy file dist /s
78
java -jar .\build\saxon9he.jar jQueryAPI.en_US.xml index.zh_CN.xsl>dist\index.html
89
pause

jQueryAPI.zh_CN.xml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5941,17 +5941,17 @@ $('li.item-a').closest('#one', listItemII)
59415941
</example>
59425942
</entry>
59435943
<entry type="property" name="selector">
5944-
<desc>A selector representing selector originally passed to jQuery().</desc>
5944+
<desc>传给jQuery()的原始选择器。</desc>
59455945
<signature/>
59465946
<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>
59495949
</longdesc>
59505950
<example>
5951-
<desc>Determine the selector used.</desc>
5951+
<desc>检测使用的选择器。</desc>
59525952
</example>
59535953
<example>
5954-
<desc>Collecting elements differently</desc>
5954+
<desc>不同的方式收集元素</desc>
59555955
</example>
59565956
</entry>
59575957
<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
60176017
</example>
60186018
</entry>
60196019
<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>
6020+
<desc>传给jQuery()的原始的DOM节点内容,即jQuery()的第二个参数。如果没有传递过第二个参数,那么 context 指向当前的文档(document)。</desc>
60216021
<signature/>
60226022
<longdesc>
6023-
<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>&lt;iframe&gt;</code> or XML document.</p>
6023+
<p><code>.live()</code> 方法绑定事件处理函数时会用到这个属性,用于检测将要使用的元素根节点以实现事件委派。需要实现类似功能的插件就很可能需要使用这个属性。</p>
6024+
<p>这个属性的值通常等价于 document 。因为 jQuery 对象的 context 参数默认情况下是无需提供的。有时候这个值会有变化,比如是在 <code>&lt;iframe&gt;</code> 中搜索,或者 XML 文档中搜索时。</p>
60266025
</longdesc>
60276026
<example>
6028-
<desc>Determine the exact context used.</desc>
6027+
<desc>检测实际使用的上下文。</desc>
60296028
</example>
60306029
</entry>
60316030
<entry type="method" name="not">

0 commit comments

Comments
 (0)