請(qǐng)問這兩行通過隨機(jī)數(shù)設(shè)置圖片位置是什么意思?
var margin_left = Math.floor(- newBox.outerWidth() / 2 + ((Math.random() * 10) < 5 ? -1 : 1) * (Math.random() * 200));
? ? var margin_top = Math.floor(- newBox.outerHeight() / 2 + ((Math.random() * 10) < 5 ? -1 : 1) * (Math.random() * 200));
2023-02-28
就是移動(dòng)位置用的
2021-10-11
這個(gè)位置的定位的意思