console.log(Math.random().toString(16).substring(2));console.log(Math.random().toString(36).substring(2));上面兩行代碼toString起到什么作用?方法內(nèi)的參數(shù)是什么意思?為什么最后會(huì)生成一個(gè)隨機(jī)字符串?
math.random()與toString()
德瑪西亞99
2018-08-13 20:06:01