剑指offer
2019-10-23 18:18
把onclick换成onmousemove有惊喜
有毒吧,以为我看不懂while,虽然我试过。?
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>单击事件 </title>
<script type="text/javascript">
function openwin(){
var i=0;
while(i<100){
window.open('http://www.baidu.com','_blank');
i++;
}
}
</script>
</head>
<body>
<form>
<input name="点击我" type="button" value="点击我" onmousemove="openwin()"/>
</form>
</body>
</html>
JavaScript进阶篇
468868 学习 · 22582 问题
相似问题