append
English[??pend] US[??p?nd]
vt.Add; ????(??)
to
English[t?] US[tu,t?]
prep. ; ~? ??;
adv? ??? ?? ???;
jqueryappendTo() ??? ???
??: appendTo() ???? ??? ???? ??? ??? ?(?? ??)? ?????. ?: Append() ? AppendTo() ???? ??? ??? ?????. ???? ???? ???? ?? ?? ? ???? ???? ??append() ??? ???? ?????.
Syntax: $(content).appendTo(selector
Parameters:
Parameter | Description |
content ??. ??? ???? ?????(HT ML ?? ?? ??). | |
?????. jqueryappendTo() ??? ?<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(){ $("<b> Hello World!</b>").appendTo("p"); }); }); </script> </head> <body> <p>This is a paragraph.</p> <p>This is another paragraph.</p> <button>在每個(gè) p 元素的結(jié)尾添加內(nèi)容</button> </body> </html> ??? ????? ??? "???? ??" ??? ????? |