随机颜色
get-random-color.js
html
<script src="./mywheels/get-random-color.js"></script>
JavaScript
const randomColor = document.querySelector('.randomColor')
randomColor.addEventListener('click', function() {
this.style.backgroundColor = getRandomColor()
})