let data = [1,2,3,4,5,6];
let odd = data.filter(x => x % 2 != 0);
console.log(odd);
<body>
<h1>The Fuck</h1>
<button id = 'btn' onclick='click()'>点击</button>
<script>
function click() {
alert('aaa');
}
</script>
</body>