经测试支持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>
最新评论
本来在正常下载,突然就不能下载,并出现报错:a socket operation was attempted to an unreachable network。请问是什么原因呢
试了,还是不行,能不能更新一下
试了,确实不行,能不能更新一下
也推荐一下我自己写的 https://twitdown.com