어떻게 jquery에서 변수를 정의하고 그 위에 요소를 넣을 수 있습니까? 규칙은 무엇입니까? 나는 JQuery와 새로운 해요 내 HTML 코드는어떻게 jquery에서 변수를 정의하고 그 위에 요소를 넣을 수 있습니까?
<head>
<title>Simplify, Simplify</title>
<script type='text/javascript' src='script.js'></script>
</head>
<body>
<div> Remember!
<ul>
<li>
<ol>
<li>Start with the function keyword</li>
<li>Inputs go between()</li>
<li>Actions go between {}</li>
<li>jQuery is for chumps!</li>
</ol>
</li>
<li>Inputs are separated by commas.</li>
<li>Inputs can include other functions!</li>
</ul>
</div>
</body>
하고 내 JQuery와는 다음과 같습니다
var target = $("#li:nth-child(4)");
$target.fadeOut('fast');
난 당신이 변수를 사용하고
나는 그들의 HTML에있는'#의 li' 요소를 볼 수 없습니다 . – jfriend00