次のようにコードコードをコピーします。
<
<html>
<head>
<メタhttp-equiv = "content-type" content = "text/html; charset = utf-8">
<title> jquery </title>
<script type = "text/javascript" src = "jquery-1.7.2.js"> </script>
<script type = "text/javascript">
$(function(){
// appret()usage
// $ .com ")。18" worn = 'abc'> hello </li> ");
// $ .com ")。18" worn = 'xyz'> world </li> ");
// appendto()の使用法
$( "<li title = 'xyz'> hello </li>")。
});
</script>
</head>
<body>
<p>サン・シユアンのトレーニングは良いと思いますか? </p>
<ul>
<li> ok </li>
<li>非常に良い</li>
<li>非常に良い</li>
<li>特に良い</li>
<li> great </li>
<li>良いことを説明できます</li>
</ul>
</body>
</html>
既存のノードで動作します
次のようにコードコードをコピーします。
<
<html>
<head>
<メタhttp-equiv = "content-type" content = "text/html; charset = utf-8">
<title> jquery4 </title>
<script type = "text/javascript" src = "jquery-1.7.2.js"> </script>
<script type = "text/javascript">
$(function(){
var li1 = $(<li title = 'abc'> hello </li> ");
var li2 = $( "<li title = 'abc'> world </li>");
var li3 = $( "<li title = 'abc'> hello world </li>");
$( "ul")。
$( "ul")。
$( "ul li:eq(4)")。
});
</script>
</head>
<body>
<p>サン・シユアンのトレーニングは良いと思いますか? </p>
<ul>
<li> ok </li>
<li>非常に良い</li>
<li>非常に良い</li>
<li>特に良い</li>
<li> great </li>
<li>良いことを説明できます</li>
</ul>
</body>
</html>