<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<script>
function show() {
var value=document.getElementById("approve").value;
if(value==1){
document.getElementById("submit").style.display="inline-block";
}else{
document.getElementById("submit").style.display="none";
}
}
</script>
<body>
<input type="checkbox" id="approve" value="0"
onclick="this.value=(this.value==0)?1:0" onchange="show()">我同意
<br>
<button type="submit" id="submit" style="display: none;">提交</button>
</body>
</html>