photo.style['-webkit-transform']='rotate('+random([-150,150])+'deg)';random[-150,150]是在兩者之間取隨機數(shù),返回數(shù)字。我看不懂為什么rotate里面的加號和引號要這樣加。。
JS代碼,rotate 不知道加號的意思
Whitney_Wang
2016-10-29 16:38:30