为了账号安全,请及时绑定邮箱和手机立即绑定

请问这两行通过随机数设置图片位置是什么意思?

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));


正在回答

2 回答

就是移动位置用的

0 回复 有任何疑惑可以回复我~

这个位置的定位的意思

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

请问这两行通过随机数设置图片位置是什么意思?

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号