html select 点击后闪退


演示视频: http://quick.as/3zj0ibw9r

很奇怪,这个页面上有其他的 select,但是都正常,只有这个一直闪退。会是什么情况导致的呢?有什么建议吗?

前端 htm

Amaenbo 10 years, 4 months ago

 <html>
<head></head>
<body>
<select id="ss">
<option>1</option>
<option>2</option>
<option>3</option>
</select>
</body>
<script>
document.getElementById('ss').onclick = function(){
    console.log('haha');
    this.blur();
}
</script>

你用chrome打开试试?然后根据这个思路去排查一下你的代码吧。。。。

坐看雷子悲剧 answered 10 years, 4 months ago

Your Answer