<script>
var i=0;
function show(){
if(i++>=20)return;
j=((Math.exp(-0.2*i))*(Math.cos(300*3.14*i)))
z.style.pixelLeft=Math.round(z.style.pixelLeft*j)
z.style.pixelTop=Math.round(z.style.pixelTop*j)
}
setInterval(show,1000);
</script>
var i=0;
function show(){
if(i++>=20)return;
j=((Math.exp(-0.2*i))*(Math.cos(300*3.14*i)))
z.style.pixelLeft=Math.round(z.style.pixelLeft*j)
z.style.pixelTop=Math.round(z.style.pixelTop*j)
}
setInterval(show,1000);
</script>
var i=-1;
function show(){
if(++i>=20)return;
j=((Math.exp(-0.2*i))*(Math.cos(300*3.14*i)))
z.style.pixelLeft=Math.round(z.style.pixelLeft*j)
z.style.pixelTop=Math.round(z.style.pixelTop*j)
}
setInterval(show,1000);
</script>
那岂不浪费很多cpu资源?