var color = '#'+ Math.random().toString(16).substr(-6); document.body.style.backgroundColor = color;这样 你每次刷新,就会呈现出不同的颜色. Dont believe, just try. Math.random().toString(16) 随机生成一个随机数,然后转为16进制字符串,截取后6位,now 就是随机颜色的后6位了.…
TIANKENG’s restaurant(Ⅱ) Time Limit: 16000/8000 MS (Java/Others) Memory Limit: 130107/65536 K (Java/Others)Total Submission(s): 456 Accepted Submission(s): 149 Problem Description After improving the marketing strategy, TIANKENG has made a fort…