如果您转到index.html并运行virtual public void Move(Graphics g)
{
Center.X += _dx;
if (Center.X - Size / 2 < 0)
{
_dx = _dx * -1;
}
else if (Center.X + Size / 2 > Form1.CanvasWidth)
{
_dx = _dx * -1;
}
Center.Y += _dy;
if (Center.Y - Size / 2 < 0)
{
_dy = _dy * -1;
}
else if (Center.Y + Size / 2 > Form1.CanvasHeigth)
{
_dy = _dy * -1;
}
Draw(g, _currColor);
}
,它是否会在浏览器中缓存而不需要再次下载,除非index.html在下次有人部署时获得新的捆绑包? / p>