<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>JQ笔记本之filter,not条件(过滤)选择操作</title>
<script type="text/javascript" src="jquery-1.10.1.min.js"></script>
<script>
//本身属性操作,比如class,title等属性
//filter : 过滤
//not : filter的反义词
$(function(){
//$('div').filter('.box').css('background','red');
$('div').not('.box').css('background','red');
});
</script>
</head>
<body>
<div class="box">div1</div>
<div>div2</div>
</body>
</html>
JQ笔记本之filter,not条件(过滤)选择操作
最新推荐文章于 2022-11-04 21:57:15 发布