不懂這里是怎么計(jì)算的,為什么要乘以500,5000
endPositionLeft = startPositionLeft - 100 + Math.random() * 500,
? ? ? ? ? ? ? ? duration ? ? ? ?= visualHeight * 10 + Math.random() * 5000;
endPositionLeft = startPositionLeft - 100 + Math.random() * 500,
? ? ? ? ? ? ? ? duration ? ? ? ?= visualHeight * 10 + Math.random() * 5000;
2018-08-22
舉報(bào)
2019-02-14
這個(gè)是隨機(jī)控制花瓣的運(yùn)動(dòng)軌跡,飄下來的時(shí)候左右運(yùn)動(dòng)范圍隨機(jī)在0~500之間,運(yùn)動(dòng)時(shí)間隨機(jī)在0~5000ms之間
2018-09-07
我也不懂啊 ,為什么這個(gè)不做成視頻講解呢