다음과 같이 코드 코드를 복사하십시오.
<doctype html public "-// w3c // dtd html 4.01 전환 //
<html>
<헤드>
<meta 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 () {
// accret () 사용
// $ .com "). 18"WORN = 'ABC'> hello </li> ");
// $ .com "). 18"worn = 'xyz'> world </li> ");
// 부록의 사용 ()
$ ( "<li title = 'xyz'> hello </li>");
});
</스크립트>
</head>
<body>
<p> San Siyuan 훈련이 좋다고 생각하십니까? </p>
<ul>
<li> OK </li>
<li> 아주 좋은 </li>
<li> 아주 좋은 </li>
<li> 특히 좋은 </li>
<li> 그레이트 </li>
<li> 좋은 설명 </li>
</ul>
</body>
</html>
기존 노드에서 작동합니다
다음과 같이 코드 코드를 복사하십시오.
<doctype html public "-// w3c // dtd html 4.01 전환 //
<html>
<헤드>
<meta 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)");
});
</스크립트>
</head>
<body>
<p> San Siyuan 훈련이 좋다고 생각하십니까? </p>
<ul>
<li> OK </li>
<li> 아주 좋은 </li>
<li> 아주 좋은 </li>
<li> 특히 좋은 </li>
<li> 그레이트 </li>
<li> 좋은 설명 </li>
</ul>
</body>
</html>