-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathafter.html
70 lines (69 loc) · 3.1 KB
/
after.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<html><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml11.dtd">
<html>
<head>
<meta charset="utf-8" />
<title>after(content|fn) | jQuery API 中文手册</title>
<meta name="author" content="jQuery 中文手册 - hemin.cn/jq/">
<meta name="description" content="jQuery中文手册(在线版),作者:hemin,在线手册:hemin.cn/jq/,下载:hemin.cn/jq/downloads/">
<link type="text/css" rel="stylesheet" href="style/style.css" tppabs="http://hemin.cn/jq/style/style.css" />
<script type="text/javascript" src="js/jquery.min.js" tppabs="http://hemin.cn/jq/js/jquery.min.js"></script>
<script type="text/javascript" src="js/js.js" tppabs="http://hemin.cn/jq/js/js.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-15318881-10', 'pandoraui.github.io');
ga('send', 'pageview');
</script>
</head>
<body id="split">
<div id="content" class="a2">
<div rel="after">
<h2><span>返回值:jQuery</span>after(content|fn)</h2>
<h3>概述</h3>
<div class="desc">
<p>在每个匹配的元素之后插入内容。</p>
<div class="longdesc">
<p></p>
</div>
</div>
<h3>参数</h3>
<div class="parameter">
<h4><strong>content</strong><span>String, Element, jQuery</span><em>V1.0</em></h4>
<p>插入到每个目标后的内容</p>
<h4><strong>function</strong><span>Function</span><em>V1.4</em></h4>
<p>函数必须返回一个html字符串。</p>
</div>
<div class="example">
<h3>示例</h3>
<span id="f_ad2"></span>
<h4>描述:</h4>
<p>在所有段落之后插入一些HTML标记代码。</p>
<h5>HTML 代码:</h5>
<pre><code><p>I would like to say: </p></code></pre>
<h5>jQuery 代码:</h5>
<pre><code>$("p").after("<b>Hello</b>");</code></pre>
<h5>结果:</h5>
<pre><code><p>I would like to say: </p><b>Hello</b></code></pre>
<h4>描述:</h4>
<p>在所有段落之后插入一个DOM元素。</p>
<h5>HTML 代码:</h5>
<pre><code><b id="foo">Hello</b><p>I would like to say: </p></code></pre>
<h5>jQuery 代码:</h5>
<pre><code>$("p").after( $("#foo")[0] );</code></pre>
<h5>结果:</h5>
<pre><code><p>I would like to say: </p><b id="foo">Hello</b></code></pre>
<h4>描述:</h4>
<p>在所有段落中后插入一个jQuery对象(类似于一个DOM元素数组)。</p>
<h5>HTML 代码:</h5>
<pre><code><b>Hello</b><p>I would like to say: </p></code></pre>
<h5>jQuery 代码:</h5>
<pre><code>$("p").after( $("b") );</code></pre>
<h5>结果:</h5>
<pre><code><p>I would like to say: </p><b>Hello</b></code></pre>
</div>
</div>
</div>
</body>
</html>