<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<script src="debug.js"></script>
<script src="hide.js"></script>
</head>
<body>
hello
<button style="background: cornflowerblues;" onclick="hide(this.true);debug('hide button1');">hide1</button>
world
</body>
</html>
function hide(e,reflow){
if(reflow){
e.style.display='none';
}else{
e.style.visibility='hidden';
}
}
为什么会报这个错,怎么改??
李晓健
相关分类