<div class="codetitle"> <span><a style="CURSOR: pointer" data="73145" class="copybut" id="copybut73145" onclick="doCopy('code73145')"><u>複製程式碼</u></a></span> 程式碼如下:</div> <div class="codebody" id="code73145"> <br> <br> <br> <br><meta http-equiv="Content-Type " content="text/html; charset=UTF-8"> <br><title>jquery</title> <br><script type="text/javascript" src="jquery-1.7.2.js"> </script> <br><script type="text/javascript"> <BR>$(function(){ <BR>//append()的用法<BR>//$("ul").append( "<li title='abc'>hello"); <BR>//$("ul").append("<li title='xyz'>world"); <BR>//appendTo()的用法<BR>$("<li title='xyz'>hello").appendTo($("ul")); <BR>}); <BR>< /script> <BR> <BR><body> <BR><p title="hello world">您覺得聖思園訓練好不好呢? <BR><ul> <BR><li title="1">好 <BR><li title="2">很好 <BR><li title= "3">很好 <BR><li title="4">特別好 <BR><li title="5">太好了 <BR><li title="6">好的無法描述了 <BR> <BR> <br><br></script> </div>