Home > front end >  Jquery selection filtering error
Jquery selection filtering error

Time:11-28



<meta charset="utf-8" & gt;
<meta name="viewport" content="width=device - width, initial - scale=1.0" & gt;
Document
<script SRC="https://bbs.csdn.net/topics/jquery-1.2.3.min.js" & gt; </script>
<script>
$(function () {
Var $divs=$(' div ');
//have (tag) selector specified for the parent tag
$divs. From the (" p "). The CSS ({" background ":" red "});
})
</script>

<body>

Ha ha & lt;/p>






Error message: the selection filter. HTML: 13 Uncaught TypeError: $divs. Has is not a function
An HTMLDocument. & lt; Anonymous> (selection filter. HTML: 13)
An HTMLDocument. & lt; Anonymous> (jquery - 1.2.3. Min. Js: 28)
Ats Function. & lt; Anonymous> (jquery - 1.2.3. Min. Js: 28)
Ats Function. Each (jquery - 1.2.3. Min. Js: 22)
An HTMLDocument. Ready (jquery - 1.2.3. Min. Js: 28)
Request for advice
  • Related