Copie o código do código da seguinte forma:
<!
<html>
<head>
<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 () {
// ATETET () Uso
// $ .com "). Anexar 18" wast = 'abc'> hello </li> ");
// $ .com "). Anexar 18" wast = 'xyz'> mundial </li> ");
// o uso de appendto ()
$ ("<li title = 'xyz'> hello </li>").
});
</script>
</head>
<Body>
<p> Você acha que o treinamento em San Siyuan é bom? </p>
<ul>
<li> OK </li>
<li> Muito bom </li>
<li> Muito bom </li>
<li> especialmente bom </li>
<li> Ótimo </li>
<li> Bom pode ser descrito </li>
</ul>
</body>
</html>
Operar em nós existentes
Copie o código do código da seguinte forma:
<!
<html>
<head>
<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'> mundial </li>");
var li3 = $ ("<li title = 'ABC'> Olá, mundo </li>");
$ ("UL").
$ ("UL").
$ ("Ul Li: Eq (4)").
});
</script>
</head>
<Body>
<p> Você acha que o treinamento em San Siyuan é bom? </p>
<ul>
<li> OK </li>
<li> Muito bom </li>
<li> Muito bom </li>
<li> especialmente bom </li>
<li> Ótimo </li>
<li> Bom pode ser descrito </li>
</ul>
</body>
</html>