after
English [?ɑ:ft?(r)] US [??ft?(r)]
prep.…after; (?? ??) after…(??, ?? ??) after…
conj .after. ..
adv.after, follow
adj.later, later
jquery after() ??? ???
??: after() ???? ??? ?? ?? ??? ??? ?????.
??: ??$(selector).after(content
????:
Parameters | Description |
content ??. ??? ???? ?????(HTML ?? ?? ??). | |
??: ????? ???? ??? ?? ?? ??? ??? ?????.
????:
$(selector).after(function(index))
??:
?? | ??(??) |
?? | ?? |
?? ??. jquery after() ??? ?
<html>
<head>
<script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("button").click(function(){
$("p").after("<p>Hello world!</p>");
});
});
</script>
</head>
<body>
<p>This is a paragraph.</p>
<button>在每個 p 元素后插入內(nèi)容</button>
</body>
</html>
???? ?? ???? ????? ??? "???? ??" ??? ?????