如何旋转一个图片并拼接字符串

$(".img2").click(function(){

i=parseInt((Math.random()+5)*360)+i;
var aa=i+"deg"
console.log(aa)
$(".img1").css({transform:"rotate("+i+"deg)"});
$(".img1").css({transition:"all 3s"});

})

原文地址:https://www.cnblogs.com/dongkx/p/6962424.html