<srcipt>
function randomColor () {
let str="#";
for(let i=0; i<3; i++){
str+=Math.floor(Math.random()*256).toString(16).padStart(2,"0");
}
return str;
}
console.log(randomColor);
</script>
<srcipt>
function randomColor () {
let str="#";
for(let i=0; i<3; i++){
str+=Math.floor(Math.random()*256).toString(16).padStart(2,"0");
}
return str;
}
console.log(randomColor);
</script>
© 著作权归作者所有