To get a random hex color in JavaScript, multiple a random value to the decimal color value 16777215 and convert it to hexadecimal value.
確定! 回上一頁