<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<script src="js/jquery.js"></script>
<script>
window.onload = function(){
document.getElementById('btnok').οnclick=function(){
//id选择器
//$('#div3').html('aaaaaaa');
//class选择器
$('.div2').html('aaaaaaaaaaaaaa');
//
$('h1,div').html('aaaaaaaaa');
}
}
</script>
</head>
<body>
<input type="button" id="btnok" value="OK" />
<hr>
<h1>111111</h1>
<hr>
<div>222222222</div>
<div class="div2">333333333</div>
<div id="div3">444444444</div>
</body>
</html>
夺命雷公狗jquery-----1选择标签的三种方法
最新推荐文章于 2015-11-03 13:34:00 发布