经测试支持Chrome,IE 11等浏览器,代码如下:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>四个空格-https://www.yomige.org/</title>
<meta name="description" content="">
<meta name="keywords" content="">
<link href="" rel="stylesheet">
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript">
//checkbox全选
function selectAll(obj) {
if (obj.checked) {
$("input[name='check1']").each(function () {
this.checked = true;
});
} else {
$("input[name='check1']").each(function () {
this.checked = false;
});
}
}
</script>
</head>
<body>
<form>
<input type="checkbox" onclick="selectAll(this)" />全选
<input type="checkbox" name="check1" />
<input type="checkbox" name="check1" />
<input type="checkbox" name="check1" />
<input type="checkbox" name="check1" />
</form>
</body>
</html>
最新评论
不错挺好用的,东至梅城何红涛林场的 何红涛2个月前 (10-18)回复
识别码不对
呵呵
我的是ipv4网络,如何使用直播源啊!