<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></meta>
<title>Visual jQuery 1.1</title>
<link rel="stylesheet" href="new_vjq.css" type="text/css"></link>
</head>
<body>
<div id="footer"><a id="left-button"><img src="images/arrow-back_16.gif"></img></a><a id="right-button"><img src="images/arrow-forward_16.gif"></img></a><p id="header">Visual jQuery 1.1 (<a href="about_me">More...</a>) for jQuery 1.1
</p>
<p id="current-path"></p>
</div>
<div id="wrapper">
<dl>
<dt xmlns="">Core</dt>
<dd xmlns="">
<dl>
<dt class="direct">$(html)</dt>
<dd class="text">
<p class="cheat"></p>
<h1>$(html)</h1>
<p>Create DOM elements on-the-fly from the provided String of raw HTML.</p>
<h2>Returns</h2>
<p>jQuery</p>
<h2>Parameters</h2>
<ul>
<li><strong>html</strong> (String):
A string of HTML to create on the fly.
</li>
</ul>
<h2>Example</h2>
<p>Creates a div element (and all of its contents) dynamically,
and appends it to the element with the ID of body. Internally, an
element is created and it's innerHTML property set to the given markup.
It is therefore both quite flexible and limited.
</p>
<h3>jQuery Code</h3><pre>$("<div><p>Hello</p></div>").appendTo("#body")</pre></dd>
<dt class="direct">$(elems)</dt>
<dd class="text">
<p class="cheat"></p>
<h1>$(elems)</h1>
<p>Wrap jQuery functionality around a single or multiple DOM Element(s).</p>
<p>This function also accepts XML Documents and Window objects
as valid arguments (even though they are not DOM Elements).
</p>
<h2>Returns</h2>
<p>jQuery</p>
<h2>Parameters</h2>
<ul>
<li><strong>elems</strong> (Element|Array<Element>):
DOM element(s) to be encapsulated by a jQuery object.
</li>
</ul>
<h2>Example</h2>
<p>Sets the background color of the page to black.</p>
<h3>jQuery Code</h3><pre>$(document.body).background( "black" );</pre><h2>Example</h2>
<p>Hides all the input elements within a form</p>
<h3>jQuery Code</h3><pre>$( myForm.elements ).hide()</pre></dd>
<dt class="direct">$(fn)</dt>
<dd class="text">
<p class="cheat"></p>
<h1>$(fn)</h1>
<p>A shorthand for $(document).ready(), allowing you to bind a function
to be executed when the DOM document has finished loading. This function
behaves just like $(document).ready(), in that it should be used to wrap
all of the other $() operations on your page. While this function is,
technically, chainable - there really isn't much use for chaining against it.
You can have as many $(document).ready events on your page as you like.
</p>
<p>See ready(Function) for details about the ready event.</p>
<h2>Returns</h2>
<p>jQuery</p>
<h2>Parameters</h2>
<ul>
<li><strong>fn</strong> (Function):
The function to execute when the DOM is ready.
</li>
</ul>
<h2>Example</h2>
<p>Executes the function when the DOM is ready to be used.</p>
<h3>jQuery Code</h3><pre>$(function(){
// Document is ready
});</pre><h2>Example</h2>
<p>Uses both the shortcut for $(document).ready() and the argument
to write failsafe jQuery code using the $ alias, without relying on the
global alias.
</p>
<h3>jQuery Code</h3><pre>jQuery(function($) {
// Your code using failsafe $ alias here...
});</pre></dd>
<dt class="direct">$(expr, context)</dt>
<dd class="text">
<p class="cheat"></p>
<h1>$(expr, context)</h1>
<p>This function accepts a string containing a CSS or
basic XPath selector which is then used to match a set of elements.
</p>
<p>The core functionality of jQuery centers around this function.
Everything in jQuery is based upon this, or uses this in some way.
The most basic use of this function is to pass in an expression
(usually consisting of CSS or XPath), which then finds all matching
elements.
</p>
<p>By default, $() looks for DOM elements within the context of the
current HTML document.
</p>
<h2>Returns</h2>
<p>jQuery</p>
<h2>Parameters</h2>
<ul>
<li><strong>expr</strong> (String):
An expression to search with
</li>
<li><strong>context</strong> (Element|jQuery):
(optional) A DOM Element, Document or jQuery to use as context
</li>
</ul>
<h2>Example</h2>
<p>Finds all p elements that are children of a div element.</p>
<h3>jQuery Code</h3><pre>$("div > p")</pre><h3>Before</h3><pre><p>one</p> <div><p>two</p></div> <p>three</p></pre><h3>Result:</h3><pre>[ <p>two</p> ]</pre><h2>Example</h2>
<p>Searches for all inputs of type radio within the first form in the document</p>
<h3>jQuery Code</h3><pre>$("input:radio", document.forms[0])</pre><h2>Example</h2>
<p>This finds all div elements within the specified XML document.</p>
<h3>jQuery Code</h3><pre>$("div", xml.responseXML)</pre></dd>
<dt class="direct">$.extend(prop)</dt>
<dd class="text">
<p class="cheat"></p>
<h1>$.extend(prop)</h1>
<p>Extends the jQuery object itself. Can be used to add functions into
the jQuery namespace and to add plugin methods (plugins).
</p>
<h2>Returns</h2>
<p>Object</p>
<h2>Parameters</h2>
<ul>
<li><strong>pr
没有合适的资源?快使用搜索试试~ 我知道了~
资源详情
资源评论
资源推荐
收起资源包目录
visual_jquery.zip (15个子文件)
1.1.html 182KB
new_vjq.css 2KB
new_vjq.js 4KB
dimensions.js 10KB
jquery.pack.js 145KB
images
arrow-back_16.png 590B
blue-button.png 894B
arrow-forward_16.png 613B
arrow-back_16.gif 562B
red-button.png 899B
grey-button.png 817B
arrow-forward_16.gif 562B
.DS_Store 6KB
header.png 646B
jquery.js 142KB
共 15 条
- 1
ahdxlg_111
- 粉丝: 0
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0